diff options
author | 2020-03-02 01:06:41 +1000 | |
---|---|---|
committer | 2020-03-02 01:06:41 +1000 | |
commit | 9d9b703d3af9a9a2006ce6747c33441b9fcbfdd6 (patch) | |
tree | ce0dd999a3da66171c34e4ef2ff41df3b93abede | |
parent | Merge pull request #806 from python-discord/feat/frontend/b000/coloured-logs (diff) | |
parent | Merge branch 'master' into master (diff) |
Merge pull request #808 from spyoungtech/master
Optimize Dockerfile for faster rebuilds
-rw-r--r-- | Dockerfile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile index 271c25050..2fba8cf68 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"] |