Skip to content

Commit

Permalink
Merge pull request #11 from planetary-social/enable-cgo
Browse files Browse the repository at this point in the history
Enable cgo in build step of dockerfile
  • Loading branch information
cooldracula authored Oct 18, 2023
2 parents 2fa8cb9 + 93e1b24 commit 5df59f9
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 @@ -4,7 +4,7 @@ WORKDIR /usr/src/app
COPY . .
# get ssl certs to copy into scratch image, as it won't have them by default.
RUN apk update && apk add --no-cache git ca-certificates && update-ca-certificates
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o /usr/local/bin/crossposting-service ./cmd/crossposting-service
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -v -o /usr/local/bin/crossposting-service ./cmd/crossposting-service


FROM scratch as app
Expand Down

0 comments on commit 5df59f9

Please sign in to comment.