Skip to content
RED SAG Skills
medium10 pts · first answer countsdockerci-cd

Slow image builds

Every small code change triggers a full reinstall of Python packages in this Dockerfile. How do you fix it?

FROM python:3.12-slim
WORKDIR /app
COPY . .
RUN pip install -r requirements.txt
CMD ["python", "serve.py"]
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions