Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit 13e6081

Browse files
committed
docker: remove redundant target platform
1 parent 7012e32 commit 13e6081

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ COPY ./translations/ /share/translations
173173
##################################
174174
## Runtime stage, debug variant ##
175175
##################################
176-
FROM --platform=${TARGETPLATFORM} gcr.io/distroless/cc-debian${DEBIAN_VERSION}:debug-nonroot AS debug
176+
FROM gcr.io/distroless/cc-debian${DEBIAN_VERSION}:debug-nonroot AS debug
177177

178178
ARG TARGETARCH
179179
COPY --from=builder /usr/local/bin/mas-cli-${TARGETARCH} /usr/local/bin/mas-cli
@@ -185,7 +185,7 @@ ENTRYPOINT ["/usr/local/bin/mas-cli"]
185185
###################
186186
## Runtime stage ##
187187
###################
188-
FROM --platform=${TARGETPLATFORM} gcr.io/distroless/cc-debian${DEBIAN_VERSION}:nonroot
188+
FROM gcr.io/distroless/cc-debian${DEBIAN_VERSION}:nonroot
189189

190190
ARG TARGETARCH
191191
COPY --from=builder /usr/local/bin/mas-cli-${TARGETARCH} /usr/local/bin/mas-cli

tools/syn2mas/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ COPY ./package.json ./package-lock.json ./
1919
RUN sed -i '/"prepare"/d' package.json
2020
RUN --network=default \
2121
npm ci \
22-
--target_arch=amd64 \
23-
--target_platform=linux \
24-
--omit=dev
22+
--target_arch=amd64 \
23+
--target_platform=linux \
24+
--omit=dev
2525

2626
WORKDIR /deps/amd64
2727

@@ -30,13 +30,13 @@ COPY ./package.json ./package-lock.json ./
3030
RUN sed -i '/"prepare"/d' package.json
3131
RUN --network=default \
3232
npm ci \
33-
--target_arch=x64 \
34-
--target_platform=linux \
35-
--omit=dev
33+
--target_arch=x64 \
34+
--target_platform=linux \
35+
--omit=dev
3636

3737

3838
# Runtime stage
39-
FROM --platform=${TARGETPLATFORM} gcr.io/distroless/nodejs18-debian12:debug-nonroot
39+
FROM gcr.io/distroless/nodejs18-debian12:debug-nonroot
4040

4141
WORKDIR /syn2mas
4242
COPY ./package.json ./package-lock.json ./

0 commit comments

Comments
 (0)