Use dockerignore instead of rm -rf .git

Merge pull request #226 from andsild/dockerignore
This commit is contained in:
azlux 2020-11-17 13:29:41 +01:00 committed by GitHub
commit 2459969349
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
RUN rm -rf .git*
RUN python3 -m venv venv && \
venv/bin/pip install wheel && \
venv/bin/pip install -r requirements.txt