make images even smaller by copying only required folders instead of all (.git,...)
This commit is contained in:
parent
6579e9ad6c
commit
4394e58cd3
2 changed files with 5 additions and 26 deletions
|
|
@ -1,28 +1,5 @@
|
|||
# Logs
|
||||
logs
|
||||
|
||||
# Tests
|
||||
tests
|
||||
|
||||
# Examples
|
||||
examples
|
||||
|
||||
# Docs
|
||||
docs
|
||||
|
||||
# Certs
|
||||
certs
|
||||
|
||||
.coverage
|
||||
|
||||
# Markdown
|
||||
*.md
|
||||
|
||||
# Other
|
||||
*.yml
|
||||
|
||||
# Github
|
||||
.github
|
||||
|
||||
# Python virtual environment
|
||||
venv
|
||||
|
|
@ -27,8 +27,10 @@ COPY requirements.txt /requirements.txt
|
|||
# install required python packages
|
||||
RUN pip3 install -r requirements.txt
|
||||
|
||||
COPY . /bumper
|
||||
|
||||
WORKDIR /bumper
|
||||
|
||||
# Copy only required folders instead of all
|
||||
COPY create_certs/ create_certs/
|
||||
COPY bumper/ bumper/
|
||||
|
||||
ENTRYPOINT ["python3", "-m", "bumper"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue