Created
April 15, 2024 15:10
-
-
Save cjohannsen81/fcb3192497be40fae024fd4b0cf137ab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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