aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2021-01-11 22:19:13 -0800
committerGravatar MarkKoz <[email protected]>2021-01-11 22:20:08 -0800
commitcfc1f73daaaaaa9564e34f3e4e855acb19ad9e21 (patch)
tree5faff55ebdc5fe83abd441f03eeaf28b40520acc
parentDocker: move env var definitions to the base stage (diff)
Docker: add comments to separate stages
-rw-r--r--Dockerfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index a115485..a6ebe2d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -19,6 +19,7 @@ RUN git clone \
WORKDIR /nsjail
RUN make
+# ------------------------------------------------------------------------------
FROM python:3.9-slim-buster as base
ENV PIP_NO_CACHE_DIR=false \
PIPENV_DONT_USE_PYENV=1 \
@@ -37,6 +38,7 @@ RUN pip install pipenv==2020.11.4
COPY --from=builder /nsjail/nsjail /usr/sbin/
RUN chmod +x /usr/sbin/nsjail
+# ------------------------------------------------------------------------------
FROM base as venv
ARG DEV
@@ -60,6 +62,7 @@ RUN if [ -n "${DEV}" ]; \
# It's in the venv image because the final image is not used during development.
COPY config/ /snekbox/config
+# ------------------------------------------------------------------------------
FROM venv
ENTRYPOINT ["gunicorn"]