Skip to content

Commit

Permalink
build(Dockerfile): build for correct platform inside image
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewhrit committed Jun 23, 2024
1 parent cd47c0d commit 465d44f
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 @@ -12,7 +12,7 @@ RUN apk add --no-cache build-base
RUN go mod download

# Build the binary
RUN go build --ldflags "-s -w" -o bin/spirit -tags sqlite ./cmd/spirit/main.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build --ldflags "-s -w" -o bin/spirit -tags sqlite ./cmd/spirit/main.go

# Run the generated binary
CMD ["/opt/spirit/bin/spirit"]

0 comments on commit 465d44f

Please sign in to comment.