Skip to content

Commit

Permalink
Improve Dockerfile:
Browse files Browse the repository at this point in the history
- Use smaller base image
- Make it smaller by not saving cache (1,15GB -> 356MB)
  • Loading branch information
KissPeter committed Apr 11, 2023
1 parent 186a8c6 commit 739b0ed
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 739b0ed

Please sign in to comment.