aboutsummaryrefslogtreecommitdiffstats
path: root/docker/venv.Dockerfile
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-02-22 21:37:47 -0800
committerGravatar MarkKoz <[email protected]>2020-02-22 21:37:47 -0800
commit782c5fc6c2e60e8e460f17d39cfad39cae7f30e0 (patch)
treef8f44bbd9e7115458a2a259668167853ab53fa93 /docker/venv.Dockerfile
parentTest lint only (diff)
parentMerge pull request #62 from python-discord/bug/ci/61/python-symlink-not-resol... (diff)
Merge remote-tracking branch 'origin/master' into research
Diffstat (limited to 'docker/venv.Dockerfile')
-rw-r--r--docker/venv.Dockerfile15
1 files changed, 9 insertions, 6 deletions
diff --git a/docker/venv.Dockerfile b/docker/venv.Dockerfile
index ae61cbb..fe5b10d 100644
--- a/docker/venv.Dockerfile
+++ b/docker/venv.Dockerfile
@@ -1,14 +1,17 @@
-FROM pythondiscord/snekbox-base:devel
+FROM pythondiscord/snekbox-base:latest
ARG DEV
ENV PIP_NO_CACHE_DIR=false \
PIPENV_DONT_USE_PYENV=1 \
PIPENV_HIDE_EMOJIS=1 \
- PIPENV_NOSPIN=1 \
- PIPENV_VENV_IN_PROJECT=1
-
-COPY Pipfile Pipfile.lock /snekbox/
+ PIPENV_NOSPIN=1
+COPY Pipfile Pipfile.lock snekbox.cfg /snekbox/
WORKDIR /snekbox
-RUN if [ -n "${DEV}" ]; pipenv sync --dev; then pipenv sync; fi
+RUN if [ -n "${DEV}" ]; \
+ then \
+ pipenv install --deploy --system --dev; \
+ else \
+ pipenv install --deploy --system; \
+ fi