Skip to content

Commit

Permalink
Fix dockerfile to build for correct target os & arch (#54)
Browse files Browse the repository at this point in the history
Co-authored-by: arno <[email protected]>
  • Loading branch information
arnopensource and arnopensource authored Dec 19, 2022
1 parent 48255f1 commit 4447028
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docker/Dockerfile.multiarch
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
ARG TARGETOS TARGETARCH
ARG HOME=/app

FROM --platform=$BUILDPLATFORM golang:1.18 AS build
ARG TARGETOS TARGETARCH

Expand All @@ -11,7 +8,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
make build

FROM alpine:edge
ARG HOME
ARG HOME=/app

RUN mkdir -p $HOME
RUN apk add --no-cache ca-certificates git openssh curl git-lfs
Expand Down

0 comments on commit 4447028

Please sign in to comment.