diff options
author | 2019-09-19 22:46:24 +1000 | |
---|---|---|
committer | 2019-09-19 22:46:24 +1000 | |
commit | 9c23b4ae59449bacddbbf898e30850c691916803 (patch) | |
tree | 9d0a201d11ed4ad1af4fd396e610494018769f04 /Dockerfile | |
parent | Merge pull request #270 from python-discord/flake8-annotations (diff) |
Cleanup Dockerfile and CI Build & Push stage
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..214398c8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM bitnami/python:3.7-prod + +ENV PIP_NO_CACHE_DIR=false \ + PIPENV_HIDE_EMOJIS=1 \ + PIPENV_IGNORE_VIRTUALENVS=1 \ + PIPENV_NOSPIN=1 + +WORKDIR /bot +COPY . . + +# Update setuptools by removing egg first, add other dependencies +RUN rm -r /opt/bitnami/python/lib/python3.*/site-packages/setuptools* && \ + pip install --no-cache-dir -U setuptools pipenv +RUN pipenv install --deploy --system + +ENTRYPOINT ["python"] +CMD ["-m", "bot"] + +VOLUME /bot/bot/log +VOLUME /bot/data |