Skip to content

Commit 842ed84

Browse files
committed
chore: update Dockerfiles to specify platform for base images
1 parent 43878b3 commit 842ed84

6 files changed

Lines changed: 18 additions & 18 deletions

File tree

3.10/x86/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ RUN set -eux && apk add --no-cache ca-certificates tzdata && \
2929
bison flex gawk patch
3030

3131
# # =========== musl ===========
32-
FROM i386/debian:bookworm AS musl_builder
32+
FROM --platform=linux/386 debian:bookworm AS musl_builder
3333
ARG DEBIAN_FRONTEND=noninteractive
3434
ENV TZ=Asia/Taipei \
3535
IS_32BIT=1
@@ -124,7 +124,7 @@ RUN set -eux && \
124124
file launcher
125125

126126
# =========== patch_stage ===========
127-
FROM i386/debian:latest AS patch_stage
127+
FROM --platform=linux/386 debian:latest AS patch_stage
128128
ARG DEBIAN_FRONTEND=noninteractive
129129
ENV TZ=Asia/Taipei \
130130
IS_32BIT=1
@@ -153,7 +153,7 @@ COPY ["common/build/wrappers/rpath-patcher.sh", "."]
153153
RUN set -eux && ./rpath-patcher.sh
154154

155155
# =========== final ===========
156-
FROM i386/debian:latest AS final
156+
FROM --platform=linux/386 debian:latest AS final
157157
ARG DEBIAN_FRONTEND=noninteractive
158158
ENV TZ=Asia/Taipei
159159

3.10/x86_64/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ RUN set -eux && apk add --no-cache ca-certificates tzdata && \
2929
bison flex gawk patch
3030

3131
# # =========== musl ===========
32-
FROM amd64/debian:bookworm AS musl_builder
32+
FROM --platform=linux/amd64 debian:bookworm AS musl_builder
3333
ARG DEBIAN_FRONTEND=noninteractive
3434
ENV TZ=Asia/Taipei \
3535
IS_32BIT=0
@@ -124,7 +124,7 @@ RUN set -eux && \
124124
file launcher
125125

126126
# =========== patch_stage ===========
127-
FROM amd64/debian:latest AS patch_stage
127+
FROM --platform=linux/amd64 debian:latest AS patch_stage
128128
ARG DEBIAN_FRONTEND=noninteractive
129129
ENV TZ=Asia/Taipei \
130130
IS_32BIT=0
@@ -153,7 +153,7 @@ COPY ["common/build/wrappers/rpath-patcher.sh", "."]
153153
RUN set -eux && ./rpath-patcher.sh
154154

155155
# =========== final ===========
156-
FROM amd64/debian:latest AS final
156+
FROM --platform=linux/amd64 debian:latest AS final
157157
ARG DEBIAN_FRONTEND=noninteractive
158158
ENV TZ=Asia/Taipei
159159

3.11/x86/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ RUN set -eux && apk add --no-cache ca-certificates tzdata && \
2929
bison flex gawk patch
3030

3131
# # =========== musl ===========
32-
FROM i386/debian:bookworm AS musl_builder
32+
FROM --platform=linux/386 debian:bookworm AS musl_builder
3333
ARG DEBIAN_FRONTEND=noninteractive
3434
ENV TZ=Asia/Taipei \
3535
IS_32BIT=1
@@ -124,7 +124,7 @@ RUN set -eux && \
124124
file launcher
125125

126126
# =========== patch_stage ===========
127-
FROM i386/debian:latest AS patch_stage
127+
FROM --platform=linux/386 debian:latest AS patch_stage
128128
ARG DEBIAN_FRONTEND=noninteractive
129129
ENV TZ=Asia/Taipei \
130130
IS_32BIT=1
@@ -153,7 +153,7 @@ COPY ["common/build/wrappers/rpath-patcher.sh", "."]
153153
RUN set -eux && ./rpath-patcher.sh
154154

155155
# =========== final ===========
156-
FROM i386/debian:latest AS final
156+
FROM --platform=linux/386 debian:latest AS final
157157
ARG DEBIAN_FRONTEND=noninteractive
158158
ENV TZ=Asia/Taipei
159159

3.11/x86_64/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ RUN set -eux && apk add --no-cache ca-certificates tzdata && \
2929
bison flex gawk patch
3030

3131
# # =========== musl ===========
32-
FROM amd64/debian:bookworm AS musl_builder
32+
FROM --platform=linux/amd64 debian:bookworm AS musl_builder
3333
ARG DEBIAN_FRONTEND=noninteractive
3434
ENV TZ=Asia/Taipei \
3535
IS_32BIT=0
@@ -124,7 +124,7 @@ RUN set -eux && \
124124
file launcher
125125

126126
# =========== patch_stage ===========
127-
FROM amd64/debian:latest AS patch_stage
127+
FROM --platform=linux/amd64 debian:latest AS patch_stage
128128
ARG DEBIAN_FRONTEND=noninteractive
129129
ENV TZ=Asia/Taipei \
130130
IS_32BIT=0
@@ -153,7 +153,7 @@ COPY ["common/build/wrappers/rpath-patcher.sh", "."]
153153
RUN set -eux && ./rpath-patcher.sh
154154

155155
# =========== final ===========
156-
FROM amd64/debian:latest AS final
156+
FROM --platform=linux/amd64 debian:latest AS final
157157
ARG DEBIAN_FRONTEND=noninteractive
158158
ENV TZ=Asia/Taipei
159159

3.12/x86/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ RUN set -eux && apk add --no-cache ca-certificates tzdata && \
2929
bison flex gawk patch
3030

3131
# # =========== musl ===========
32-
FROM i386/debian:bookworm AS musl_builder
32+
FROM --platform=linux/386 debian:bookworm AS musl_builder
3333
ARG DEBIAN_FRONTEND=noninteractive
3434
ENV TZ=Asia/Taipei \
3535
IS_32BIT=1
@@ -124,7 +124,7 @@ RUN set -eux && \
124124
file launcher
125125

126126
# =========== patch_stage ===========
127-
FROM i386/debian:latest AS patch_stage
127+
FROM --platform=linux/386 debian:latest AS patch_stage
128128
ARG DEBIAN_FRONTEND=noninteractive
129129
ENV TZ=Asia/Taipei \
130130
IS_32BIT=1
@@ -153,7 +153,7 @@ COPY ["common/build/wrappers/rpath-patcher.sh", "."]
153153
RUN set -eux && ./rpath-patcher.sh
154154

155155
# =========== final ===========
156-
FROM i386/debian:latest AS final
156+
FROM --platform=linux/386 debian:latest AS final
157157
ARG DEBIAN_FRONTEND=noninteractive
158158
ENV TZ=Asia/Taipei
159159

3.12/x86_64/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ RUN set -eux && apk add --no-cache ca-certificates tzdata && \
2929
bison flex gawk patch
3030

3131
# # =========== musl ===========
32-
FROM amd64/debian:bookworm AS musl_builder
32+
FROM --platform=linux/amd64 debian:bookworm AS musl_builder
3333
ARG DEBIAN_FRONTEND=noninteractive
3434
ENV TZ=Asia/Taipei \
3535
IS_32BIT=0
@@ -124,7 +124,7 @@ RUN set -eux && \
124124
file launcher
125125

126126
# =========== patch_stage ===========
127-
FROM amd64/debian:latest AS patch_stage
127+
FROM --platform=linux/amd64 debian:latest AS patch_stage
128128
ARG DEBIAN_FRONTEND=noninteractive
129129
ENV TZ=Asia/Taipei \
130130
IS_32BIT=0
@@ -153,7 +153,7 @@ COPY ["common/build/wrappers/rpath-patcher.sh", "."]
153153
RUN set -eux && ./rpath-patcher.sh
154154

155155
# =========== final ===========
156-
FROM amd64/debian:latest AS final
156+
FROM --platform=linux/amd64 debian:latest AS final
157157
ARG DEBIAN_FRONTEND=noninteractive
158158
ENV TZ=Asia/Taipei
159159

0 commit comments

Comments
 (0)