diff --git a/platform/support/bridge-task/Dockerfile b/platform/support/bridge-task/Dockerfile index fc6a3132b5..4c0193c9d8 100644 --- a/platform/support/bridge-task/Dockerfile +++ b/platform/support/bridge-task/Dockerfile @@ -6,8 +6,19 @@ COPY . . ARG TARGETARCH RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -o main -FROM alpine +# --- Runtime for amd64 architecture --- +FROM alpine AS runtime-amd64 LABEL org.opencontainers.image.source=https://github.com/sst/sst WORKDIR /app COPY --from=builder /app/main /app/main CMD ["/app/main"] + +# --- Runtime for arm64 architecture --- +FROM arm64v8/alpine AS runtime-arm64 +LABEL org.opencontainers.image.source=https://github.com/sst/sst +WORKDIR /app +COPY --from=builder /app/main /app/main +CMD ["/app/main"] + +# --- Final selector --- +FROM runtime-${TARGETARCH} AS final \ No newline at end of file