Skip to content

Commit

Permalink
build(dockerfile): explicitly disable cgo
Browse files Browse the repository at this point in the history
  • Loading branch information
DeadNews committed Feb 19, 2024
1 parent 44bc4e3 commit d863cfe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Build the application from source.
FROM golang:1.22.0-alpine@sha256:8e96e6cff6a388c2f70f5f662b64120941fcd7d4b89d62fec87520323a316bd9 AS go-builder

ENV \
# Maunt as dedicated RUN cache.
GOCACHE="/cache/go-build" \
ENV GOCACHE="/cache/go-build" \
# Disable CGO to build a static binary.
CGO_ENABLED=0

Expand Down

0 comments on commit d863cfe

Please sign in to comment.