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
|
|
@ -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