Skip to content

Commit

Permalink
Update Dockerfile to support multi-platform builds
Browse files Browse the repository at this point in the history
  • Loading branch information
minpeter committed Mar 13, 2024
1 parent 3230046 commit da28101
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 @@ WORKDIR /app
RUN go build -o /bin/app .

# GOPATH for scratch images is /
FROM scratch
FROM --platform=$BUILDPLATFORM scratch
COPY --from=builder /bin/app /app
COPY ./templates /templates
EXPOSE 10000
Expand Down

0 comments on commit da28101

Please sign in to comment.