Slimmer docker image

Also, have you considered python:3-slim or python:3-alpine?
This commit is contained in:
Paul Tötterman 2020-01-15 14:10:04 +02:00 committed by GitHub
parent 0723dea55e
commit 82ac63f7a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
FROM python:3 FROM python:3
WORKDIR /bot WORKDIR /bot
RUN pip install pipenv RUN pip install pipenv && rm -rf /root/.cache
COPY Pipfile . COPY Pipfile .
RUN pipenv install --pre RUN pipenv install --pre && rm -rf /root/.cache
COPY bot.py *.json *.pickle /bot/ COPY bot.py *.json *.pickle /bot/
COPY modules modules COPY modules modules