Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit 327503e

Browse files
committed
Update build.Dockerfile
1 parent 824a569 commit 327503e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@ ARG TARGETPLATFORM
44
ARG TARGETOS
55
ARG TARGETARCH
66

7+
ENV GO111MODULE=on \
8+
CGO_ENABLED=0 \
9+
GOOS=${TARGETOS} \
10+
GOARCH=${TARGETARCH}
11+
712
WORKDIR /go/src/app
813
COPY . .
914

10-
RUN make build SYSTEM="GOOS=${TARGETOS} GOARCH=${TARGETARCH}"
15+
RUN make build
1116

1217
FROM alpine:3.15.0
1318

0 commit comments

Comments
 (0)