Reduce Docker image size 80% via pyinstaller (#1)

* FROM scratch - initial commit

* Switch to debian + ADD middle-ground
This commit is contained in:
askiiart 2023-09-06 14:59:21 -05:00 committed by GitHub
parent 44da56ddaa
commit f82aa8b4bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 13 deletions

View file

@ -1,6 +1,4 @@
FROM python:latest
FROM python:slim-bookworm
WORKDIR /data
COPY ./requirements.txt /data/
RUN pip3 install -r /data/requirements.txt
COPY ./*.py /data/
CMD python3 main.py
ADD AlwaysDungeons.tar.gz /data
CMD ["/data/main"]