mirror of
https://github.com/dockersamples/example-voting-app.git
synced 2026-02-14 18:29:51 +00:00
lint: fix InvalidDefinitionDescription
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Define a base stage that uses the official python runtime base image
|
||||
# base defines a base stage that uses the official python runtime base image
|
||||
FROM python:3.11-slim AS base
|
||||
|
||||
# Add curl for healthcheck
|
||||
@@ -13,14 +13,13 @@ WORKDIR /usr/local/app
|
||||
COPY requirements.txt ./requirements.txt
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Define a stage specifically for development, where it'll watch for
|
||||
# filesystem changes
|
||||
# dev defines a stage for development, where it'll watch for filesystem changes
|
||||
FROM base AS dev
|
||||
RUN pip install watchdog
|
||||
ENV FLASK_ENV=development
|
||||
CMD ["python", "app.py"]
|
||||
|
||||
# Define the final stage that will bundle the application for production
|
||||
# final defines the stage that will bundle the application for production
|
||||
FROM base AS final
|
||||
|
||||
# Copy our code from the current folder to the working directory inside the container
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
# to build for a different platform than your host, use --platform=<platform>
|
||||
# for example, if you were on Intel (amd64) and wanted to build for ARM, you would use:
|
||||
# docker buildx build --platform "linux/arm64/v8" .
|
||||
|
||||
# build compiles the program for the builder's local platform
|
||||
FROM --platform=${BUILDPLATFORM} mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
||||
ARG TARGETPLATFORM
|
||||
ARG TARGETARCH
|
||||
|
||||
Reference in New Issue
Block a user