Skip to content

Commit 7aa253e

Browse files
Merge pull request #2317 from AustinRochford/docker-change-build-context
Change container script to use setup.py
2 parents a332566 + 385a86f commit 7aa253e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

scripts/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ RUN apt-get update && \
1212

1313
USER $NB_USER
1414

15-
COPY create_testenv.sh /tmp/create_testenv.sh
15+
COPY scripts/create_testenv.sh /tmp/create_testenv.sh
16+
COPY setup.py $HOME/work/setup.py
17+
COPY requirements.txt $HOME/work/requirements.txt
1618
RUN /bin/bash /tmp/create_testenv.sh --global --no-setup
1719

1820
# matplotlib nonsense

scripts/start_container.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ SRC_DIR=${SRC_DIR:-`pwd`}
55
NOTEBOOK_DIR=${NOTEBOOK_DIR:-$SRC_DIR/notebooks}
66
TOKEN=$(openssl rand -hex 24)
77

8-
docker build -t pymc3 $SRC_DIR/scripts
8+
docker build -t pymc3 -f $SRC_DIR/scripts/Dockerfile $SRC_DIR
99
docker run -d \
1010
-p $PORT:8888 \
1111
-v $SRC_DIR:/home/jovyan/pymc3 \

0 commit comments

Comments
 (0)