diff options
| author | 2020-03-03 21:05:18 -0500 | |
|---|---|---|
| committer | 2020-03-03 21:05:18 -0500 | |
| commit | 524692f49f4c98402b8b94ff8dd55d95b89f8fc8 (patch) | |
| tree | 65e98a5ceb276e099226c55d79cd691f44382e5b /Dockerfile | |
| parent | Add logging to antimalware cog & expand user feedback (diff) | |
| parent | Merge pull request #750 from python-discord/bug/backend/b748/resolver-in-coro (diff) | |
Merge branch 'master' into antimalware-logging
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 9 |
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"] |