diff options
author | 2021-01-11 22:19:13 -0800 | |
---|---|---|
committer | 2021-01-11 22:20:08 -0800 | |
commit | cfc1f73daaaaaa9564e34f3e4e855acb19ad9e21 (patch) | |
tree | 5faff55ebdc5fe83abd441f03eeaf28b40520acc | |
parent | Docker: move env var definitions to the base stage (diff) |
Docker: add comments to separate stages
-rw-r--r-- | Dockerfile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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"] |