aboutsummaryrefslogtreecommitdiffstats
path: root/docker/venv.Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'docker/venv.Dockerfile')
-rw-r--r--docker/venv.Dockerfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/docker/venv.Dockerfile b/docker/venv.Dockerfile
new file mode 100644
index 0000000..85188fd
--- /dev/null
+++ b/docker/venv.Dockerfile
@@ -0,0 +1,13 @@
+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/
+WORKDIR /snekbox
+
+RUN if [ -n "${DEV}" ]; pipenv sync --dev; then pipenv sync; fi