aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2021-01-11 22:14:29 -0800
committerGravatar MarkKoz <[email protected]>2021-01-11 22:20:07 -0800
commit528ac7d750aeeb6daba1826b5f1d6c246a93b0a4 (patch)
tree5f52c6a2ec20b22084f074e950cbd0f46c794e39
parentForce extant packages to install to the user site too during deployment (diff)
Docker: move env var definitions to the base stage
Just a refactor.
-rw-r--r--Dockerfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index eefb795..a115485 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -20,7 +20,11 @@ WORKDIR /nsjail
RUN make
FROM python:3.9-slim-buster as base
-ENV PIP_NO_CACHE_DIR=false
+ENV PIP_NO_CACHE_DIR=false \
+ PIPENV_DONT_USE_PYENV=1 \
+ PIPENV_HIDE_EMOJIS=1 \
+ PIPENV_NOSPIN=1 \
+ PYTHONUSERBASE=/snekbox/user_base
RUN apt-get -y update \
&& apt-get install -y \