We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 80e4f90 + e3cfd8c commit bc915e3Copy full SHA for bc915e3
Dockerfile
@@ -3,7 +3,7 @@
3
FROM --platform=${BUILDPLATFORM} docker.io/tonistiigi/xx:golang AS xx
4
FROM --platform=${BUILDPLATFORM} golang:alpine AS gobuild
5
6
-RUN apk add make
+RUN apk add make gcc libc-dev
7
8
WORKDIR /src
9
Makefile
@@ -6,14 +6,12 @@ DOCKER_BUILDTAGS ?= no_btrfs no_cri no_zfs exclude_disk_quota exclude_graphdrive
GO_BUILDTAGS ?= netgo osusergo static_build $(DOCKER_BUILDTAGS)
mobynit:
- CGO_ENABLED=0 \
10
$(GO) build -o $(DEST)/$@ \
11
-ldflags "$(GO_LDFLAGS)" \
12
-tags "$(GO_BUILDTAGS)" \
13
./cmd/mobynit
14
15
hostapp.test:
16
17
$(GO) test -c -o $(DEST)/$@ \
18
19
-tags "$(GO_BUILDTAGS)"
0 commit comments