Fix Dockerfile file copying best practices
Followed the usual advice of preferring COPY to ADD when adding files into the Dockerfile, and made sure to only import the files needed for the program to run.
This commit is contained in:
parent
88d9e55ae3
commit
ffa23c36ba
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ apt-get -q -y autoremove && apt-get -q -y clean && \
|
|||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Final setup & execution
|
||||
ADD . /app
|
||||
WORKDIR /app
|
||||
COPY entrypoint.sh main.py /app
|
||||
ENTRYPOINT ["/bin/sh", "/app/entrypoint.sh"]
|
||||
CMD ["main.py"]
|
||||
|
|
Loading…
Reference in a new issue