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:
Marty Oehme 2021-05-19 18:19:55 +02:00
parent 88d9e55ae3
commit ffa23c36ba
Signed by: Marty
GPG key ID: B7538B8F50A1C800

View file

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