diff options
author | 2019-06-06 11:16:54 -0700 | |
---|---|---|
committer | 2019-06-22 13:35:49 -0700 | |
commit | cbc375b4a84aa07554b31b1608a82091ba671a58 (patch) | |
tree | 0d0f0bab93f910f897acfe08957ab1b6189a2c2d /docker | |
parent | Use a custom Gunicorn access log format (diff) |
Add support for development to Docker images
* Venv image can sync dev dependencies
* Copy tests to image
* Add a Pipenv script for running a development shell in a container
* Add Pipenv scripts for building dev images
Diffstat (limited to 'docker')
-rw-r--r-- | docker/venv.Dockerfile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/venv.Dockerfile b/docker/venv.Dockerfile index 61aba58..85188fd 100644 --- a/docker/venv.Dockerfile +++ b/docker/venv.Dockerfile @@ -1,5 +1,6 @@ FROM pythondiscord/snekbox-base:latest +ARG DEV ENV PIP_NO_CACHE_DIR=false \ PIPENV_DONT_USE_PYENV=1 \ PIPENV_HIDE_EMOJIS=1 \ @@ -9,4 +10,4 @@ ENV PIP_NO_CACHE_DIR=false \ COPY Pipfile Pipfile.lock /snekbox/ WORKDIR /snekbox -RUN pipenv sync +RUN if [ -n "${DEV}" ]; pipenv sync --dev; then pipenv sync; fi |