- commit
- eeae06c
- parent
- 787c062
- author
- Antonio Mika
- date
- 2022-08-31 15:08:29 +0000 UTC
Remove os/user ldd warnings
1 files changed,
+2,
-2
+2,
-2
1@@ -28,8 +28,8 @@ ENV CC=/app/scripts/gccwrap.sh
2
3 ENV GOOS=${TARGETOS} GOARCH=${TARGETARCH}
4
5-RUN go build -ldflags "$LDFLAGS" -tags netgo -o /go/bin/${APP}-ssh ./cmd/${APP}/ssh
6-RUN go build -ldflags "$LDFLAGS" -tags netgo -o /go/bin/${APP}-web ./cmd/${APP}/web
7+RUN go build -ldflags "$LDFLAGS" -tags "netgo osusergo" -o /go/bin/${APP}-ssh ./cmd/${APP}/ssh
8+RUN go build -ldflags "$LDFLAGS" -tags "netgo osusergo" -o /go/bin/${APP}-web ./cmd/${APP}/web
9
10 FROM scratch as release-ssh
11