diff options
| author | 2018-09-13 18:02:36 +0000 | |
|---|---|---|
| committer | 2018-09-13 18:02:36 +0000 | |
| commit | be57a9bfc02fe544f208f12ba22c5c3af634f1e7 (patch) | |
| tree | 8156141a17262dd52149a22d2f0b34e125dcd297 /docker/bot.Dockerfile | |
| parent | Merge branch 'apostrophes-in-otnames' into 'master' (diff) | |
| parent | use system flag instead of using venv (diff) | |
Merge branch 'pipenv-docker-system' into 'master'
use system flag instead of using venv
See merge request python-discord/projects/bot!52
Diffstat (limited to 'docker/bot.Dockerfile')
| -rw-r--r-- | docker/bot.Dockerfile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docker/bot.Dockerfile b/docker/bot.Dockerfile new file mode 100644 index 000000000..4713e1f0e --- /dev/null +++ b/docker/bot.Dockerfile @@ -0,0 +1,14 @@ +FROM pythondiscord/bot-base:latest + +ENV PIPENV_VENV_IN_PROJECT=1 +ENV PIPENV_IGNORE_VIRTUALENVS=1 +ENV PIPENV_NOSPIN=1 +ENV PIPENV_HIDE_EMOJIS=1 + +COPY . /bot +WORKDIR /bot + +RUN pipenv install --deploy --system + +ENTRYPOINT ["/sbin/tini", "--"] +CMD ["python", "-m", "bot"] |