Skip to content

Instantly share code, notes, and snippets.

@cjohannsen81
Created April 15, 2024 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjohannsen81/fcb3192497be40fae024fd4b0cf137ab to your computer and use it in GitHub Desktop.
Save cjohannsen81/fcb3192497be40fae024fd4b0cf137ab to your computer and use it in GitHub Desktop.
# Stage 1: Build
FROM python:3.9 as build
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Stage 2: Runtime
FROM python:3.9-slim as runtime
WORKDIR /app
COPY --from=build /app /app
CMD ["python", "app.py"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment