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 WORKDIR /app
COPY scripts/ /app COPY requirements.txt .
COPY requirements.txt /app
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
COPY scripts/ .
CMD ["python", "main.py"] ENTRYPOINT ["python", "main.py"]