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"]