Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
Add platform flag in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Cheong committed Sep 1, 2023
1 parent fa2c4f9 commit 738ff40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -o /obsidian-sync ./cmd/obsidian-sync/

# Deploy the application binary into a lean image
FROM gcr.io/distroless/base-debian11 AS build-release-stage
FROM --platform=${TARGETPLATFORM} gcr.io/distroless/base-debian11 AS build-release-stage

WORKDIR /

Expand Down

0 comments on commit 738ff40

Please sign in to comment.