medium10 pts · first answer countsdocker
Purpose of a multi-stage build
What is the main benefit of this Dockerfile pattern?
FROM python:3.12 AS build COPY requirements.txt . RUN pip wheel --wheel-dir /wheels -r requirements.txt FROM python:3.12-slim COPY --from=build /wheels /wheels RUN pip install --no-index /wheels/* COPY app/ /app
Discussion 0
Join free to post in the discussion.
Related questions
- Why put a model in a containerMLOps Engineer
- Image versus containerMLOps Engineer
- Slow image buildsMLOps Engineer
- Same tag, different imageMLOps Engineer
- Docker image versus containerBackend Developer
- Docker rebuild reinstalls everythingBackend Developer
- Docker image vs containerFull Stack Developer
- Slow Docker builds on every changeFull Stack Developer