Skip to content

Commit

Permalink
Attempt to remove unknown arch from containerized builds (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeReaper authored Oct 15, 2024
1 parent 73743bf commit 1a2f393
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM golang:alpine AS build
FROM --platform=$BUILDPLATFORM golang:alpine AS build
COPY . .
ARG VERSION
RUN go build -trimpath -o /app/ \
-ldflags "-s -w -X github.com/codereaper/lane/cmd.versionString=$VERSION"

FROM scratch
FROM --platform=$BUILDPLATFORM scratch
COPY --from=build /app/lane /
ENTRYPOINT [ "/lane" ]

0 comments on commit 1a2f393

Please sign in to comment.