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"]
Discussion 0
Join free to post in the discussion.
Related questions
- Why put a model in a containerMLOps Engineer
- What CI should check for a modelMLOps Engineer
- Image versus containerMLOps Engineer
- Purpose of a multi-stage buildMLOps Engineer
- Automatic gate before promotionMLOps Engineer
- Same tag, different imageMLOps Engineer
- Image tag now points elsewhereMLOps Engineer
- Old run cannot be rebuiltMLOps Engineer