File tree 4 files changed +9
-8
lines changed
4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ RUN npm ci && \
18
18
19
19
COPY . .
20
20
21
- ENV PORT 80
21
+ ENV PORT= 80
22
22
EXPOSE 80
23
23
24
24
ENTRYPOINT ["/usr/bin/tini" , "--" ]
Original file line number Diff line number Diff line change @@ -13,4 +13,4 @@ COPY . .
13
13
# create POST data files with ab friendly formats
14
14
RUN python make-data.py
15
15
16
- CMD /seed/generate-votes.sh
16
+ CMD [ " /seed/generate-votes.sh" ]
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
2
2
FROM python:3.11-slim AS base
3
3
4
4
# Add curl for healthcheck
@@ -13,14 +13,13 @@ WORKDIR /usr/local/app
13
13
COPY requirements.txt ./requirements.txt
14
14
RUN pip install --no-cache-dir -r requirements.txt
15
15
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
18
17
FROM base AS dev
19
18
RUN pip install watchdog
20
19
ENV FLASK_ENV=development
21
20
CMD ["python" , "app.py" ]
22
21
23
- # Define the final stage that will bundle the application for production
22
+ # final defines the stage that will bundle the application for production
24
23
FROM base AS final
25
24
26
25
# Copy our code from the current folder to the working directory inside the container
Original file line number Diff line number Diff line change 6
6
# to build for a different platform than your host, use --platform=<platform>
7
7
# for example, if you were on Intel (amd64) and wanted to build for ARM, you would use:
8
8
# docker buildx build --platform "linux/arm64/v8" .
9
- FROM --platform=${BUILDPLATFORM} mcr.microsoft.com/dotnet/sdk:7.0 as build
9
+
10
+ # build compiles the program for the builder's local platform
11
+ FROM --platform=${BUILDPLATFORM} mcr.microsoft.com/dotnet/sdk:7.0 AS build
10
12
ARG TARGETPLATFORM
11
13
ARG TARGETARCH
12
14
ARG BUILDPLATFORM
@@ -23,4 +25,4 @@ RUN dotnet publish -c release -o /app -a $TARGETARCH --self-contained false --no
23
25
FROM mcr.microsoft.com/dotnet/runtime:7.0
24
26
WORKDIR /app
25
27
COPY --from=build /app .
26
- ENTRYPOINT ["dotnet" , "Worker.dll" ]
28
+ ENTRYPOINT ["dotnet" , "Worker.dll" ]
You can’t perform that action at this time.
0 commit comments