Skip to content

Commit c6590cb

Browse files
author
Aaron O'Mullan
committed
Install node_modules & compile client in base stack
1 parent 98444d1 commit c6590cb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stacks/base/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,11 @@ RUN adduser --shell /bin/bash --gecos 'codebox workspace user' --disabled-passwo
3535
# That is clean of temporary folders and node_moudles
3636
ADD ./src /opt/codebox
3737

38+
# Install node modules
39+
RUN cd /opt/codebox; npm install
40+
41+
# Build client
42+
RUN cd /opt/codebox; node_modules/.bin/hr.js -d client build
43+
3844
# Default init command
3945
CMD su codebox /opt/codebox/init.sh

0 commit comments

Comments
 (0)