Merge pull request #798 from KissPeter/improve_Dockerfile_to_make_it_smaller

Improve Dockerfile
pull/742/head^2
Richard Beales 2023-04-12 19:44:58 +01:00 committed by GitHub
commit ac76a97ec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 7 deletions

View File

@ -1,9 +1,7 @@
FROM python:3.11
FROM python:3.11-slim
ENV PIP_NO_CACHE_DIR=yes
WORKDIR /app
COPY scripts/ /app
COPY requirements.txt /app
COPY requirements.txt .
RUN pip install -r requirements.txt
CMD ["python", "main.py"]
COPY scripts/ .
ENTRYPOINT ["python", "main.py"]