File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed
src/AWS.Deploy.Orchestration/Docker/Templates Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,6 @@ WORKDIR "/src/{project-folder}"
1111RUN dotnet build "{project-name}" -c Release -o /app/build
1212
1313FROM build AS publish
14- RUN apt-get update -yq \
15- && apt-get install -yq ca-certificates curl gnupg \
16- && mkdir -p /etc/apt/keyrings \
17- && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
18- && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
19- && apt-get update -yq \
20- && apt-get install nodejs -yq
2114RUN dotnet publish "{project-name}" -c Release -o /app/publish
2215
2316FROM base AS final{http-port-env-variable}
Original file line number Diff line number Diff line change 1- FROM --platform=$BUILDPLATFORM {docker-base-image} AS base{non-root-user}
1+ FROM {docker-base-image} AS base{non-root-user}
22WORKDIR /app
33{exposed-ports}
44
@@ -13,13 +13,6 @@ RUN dotnet build "{project-name}" -c Release -o /app/build -a $TARGETARCH
1313
1414FROM build AS publish
1515ARG TARGETARCH
16- RUN apt-get update -yq \
17- && apt-get install -yq ca-certificates curl gnupg \
18- && mkdir -p /etc/apt/keyrings \
19- && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
20- && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
21- && apt-get update -yq \
22- && apt-get install nodejs -yq
2316RUN dotnet publish "{project-name}" -c Release -o /app/publish -a $TARGETARCH
2417
2518FROM base AS final{http-port-env-variable}
You can’t perform that action at this time.
0 commit comments