diff options
author | 2020-03-01 23:07:06 +0100 | |
---|---|---|
committer | 2020-03-01 23:07:06 +0100 | |
commit | 126b759f9817e2f89af00e628fe499bd98370236 (patch) | |
tree | 27ab6501be3602b4a802561d5a48b96df6a6d335 /Dockerfile | |
parent | Modify log test regex to be non-os-specific (diff) | |
parent | Merge pull request #809 from python-discord/ban-grabify-urls (diff) |
Merge branch 'master' into python38-migration
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile index 22ebcd667..06a538b2a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] |