Skip to content

Commit 929c056

Browse files
author
Aaron O'Mullan
committed
Mount codebox's sourcecode as a volume for now
This will be reverted when we'll bundle the source code
1 parent 0494939 commit 929c056

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

stacks/base/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,16 @@ RUN adduser --shell /bin/bash --gecos 'codebox workspace user' --disabled-passwo
3333
# Add codebox's source code to the container
3434
# "./buildstack.sh base" will generate a local source folder for this
3535
# That is clean of temporary folders and node_moudles
36-
ADD ./src /opt/codebox
36+
#ADD ./src /opt/codebox
3737

3838
# Install node modules
39-
RUN cd /opt/codebox; npm install
39+
#RUN cd /opt/codebox; npm install
4040

4141
# Build client
42-
RUN cd /opt/codebox; node_modules/.bin/hr.js -d client build
42+
#RUN cd /opt/codebox; node_modules/.bin/hr.js -d client build
4343

4444
# Default init command
4545
CMD su codebox /opt/codebox/init.sh
46+
47+
# Needed Volumes
48+
VOLUME ["/opt/codebox"]

stacks/buildstack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -e
88
# Constants
99
###
1010
BASE_REPO="codebox"
11-
BASE_STACK="base"
11+
BASE_STACK="null"
1212
SRC_DIR=$(readlink -f ..)
1313
TMP_SRC="/tmp/codebox_src"
1414
STACK_SRC="${SRC_DIR}/stacks/base/src"

0 commit comments

Comments
 (0)