Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion platform/support/bridge-task/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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