File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1- # Define a base stage that uses the official python runtime base image
1+ # base defines a base stage that uses the official python runtime base image
22FROM python:3.11-slim AS base
33
44# Add curl for healthcheck
@@ -13,14 +13,13 @@ WORKDIR /usr/local/app
1313COPY requirements.txt ./requirements.txt
1414RUN pip install --no-cache-dir -r requirements.txt
1515
16- # Define a stage specifically for development, where it'll watch for
17- # filesystem changes
16+ # dev defines a stage for development, where it'll watch for filesystem changes
1817FROM base AS dev
1918RUN pip install watchdog
2019ENV FLASK_ENV=development
2120CMD ["python" , "app.py" ]
2221
23- # Define the final stage that will bundle the application for production
22+ # final defines the stage that will bundle the application for production
2423FROM base AS final
2524
2625# Copy our code from the current folder to the working directory inside the container
Original file line number Diff line number Diff line change 66# to build for a different platform than your host, use --platform=<platform>
77# for example, if you were on Intel (amd64) and wanted to build for ARM, you would use:
88# docker buildx build --platform "linux/arm64/v8" .
9+
10+ # build compiles the program for the builder's local platform
911FROM --platform=${BUILDPLATFORM} mcr.microsoft.com/dotnet/sdk:7.0 AS build
1012ARG TARGETPLATFORM
1113ARG TARGETARCH
You can’t perform that action at this time.
0 commit comments