make images even smaller by copying only required folders instead of all (.git,...)

This commit is contained in:
Robert Resch 2021-05-01 18:21:39 +02:00
parent 6579e9ad6c
commit 4394e58cd3
No known key found for this signature in database
GPG key ID: 6B360759EB2ACAEE
2 changed files with 5 additions and 26 deletions

View file

@ -1,28 +1,5 @@
# Logs
logs
# Tests
tests
# Examples
examples
# Docs
docs
# Certs
certs
.coverage
# Markdown # Markdown
*.md *.md
# Other # Other
*.yml *.yml
# Github
.github
# Python virtual environment
venv

View file

@ -27,8 +27,10 @@ COPY requirements.txt /requirements.txt
# install required python packages # install required python packages
RUN pip3 install -r requirements.txt RUN pip3 install -r requirements.txt
COPY . /bumper
WORKDIR /bumper WORKDIR /bumper
# Copy only required folders instead of all
COPY create_certs/ create_certs/
COPY bumper/ bumper/
ENTRYPOINT ["python3", "-m", "bumper"] ENTRYPOINT ["python3", "-m", "bumper"]