Use dockerignore instead of "rm -rf .git"

This reduces the number of layers in the dockerfile by one
This commit is contained in:
Anders Sildnes 2020-11-07 17:06:45 +01:00
parent ff7baabe94
commit 73e52ba945
2 changed files with 1 additions and 2 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
.git/

View File

@ -11,8 +11,6 @@ COPY . /botamusique
WORKDIR /botamusique WORKDIR /botamusique
RUN rm -rf .git*
RUN python3 -m venv venv && \ RUN python3 -m venv venv && \
venv/bin/pip install wheel && \ venv/bin/pip install wheel && \
venv/bin/pip install -r requirements.txt venv/bin/pip install -r requirements.txt