Shave 100MB from the Docker image by not caching and removing some dependencies

This commit is contained in:
Gregoo 2025-01-17 22:51:22 +01:00
parent 74094b2ea2
commit 4bbf3a3e80
2 changed files with 4 additions and 7 deletions

View File

@ -1,12 +1,11 @@
FROM python:slim FROM python:3-slim
WORKDIR /app WORKDIR /app
# Python library requirements
COPY requirements.txt .
RUN pip install -r requirements.txt
# Bricktracker # Bricktracker
COPY . . COPY . .
# Python library requirements
RUN pip --no-cache-dir install -r requirements.txt
ENTRYPOINT ["./entrypoint.sh"] ENTRYPOINT ["./entrypoint.sh"]

View File

@ -5,7 +5,5 @@ flask-login
gunicorn gunicorn
humanize humanize
jinja2 jinja2
pathlib
plotly
rebrick rebrick
requests requests