aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2020-03-04 17:19:00 -0500
committerGravatar S. Co1 <[email protected]>2020-03-04 17:19:00 -0500
commitc624c25a59e6d6e386c7b5f43ff578db7e29eab8 (patch)
treeb82e18a6102d2b11992fb8e7bcfc4d72b54b8d46 /Dockerfile
parentConvert "get_tags()" and "_get_tag()" to sync functions (diff)
parentMerge pull request #814 from python-discord/antimalware-logging (diff)
Merge branch 'master' into tags_overhaul
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 271c25050..06a538b2a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM python:3.7-slim
+FROM python:3.8-slim
# Set pip to have cleaner logs and no saved cache
ENV PIP_NO_CACHE_DIR=false \
@@ -9,12 +9,15 @@ ENV PIP_NO_CACHE_DIR=false \
# Install pipenv
RUN pip install -U pipenv
-# Copy project files into working directory
+# Create the working directory
WORKDIR /bot
-COPY . .
# Install project dependencies
+COPY Pipfile* ./
RUN pipenv install --system --deploy
+# Copy the source code in last to optimize rebuilding the image
+COPY . .
+
ENTRYPOINT ["python3"]
CMD ["-m", "bot"]