mirror of
https://github.com/kerberos-io/agent.git
synced 2026-08-23 15:08:32 +00:00
Add GOOS argument to Dockerfiles for build environment configuration
This commit is contained in:
@@ -32,6 +32,9 @@ RUN cat /go/src/github.com/kerberos-io/agent/machinery/version
|
||||
##################
|
||||
# Build Machinery
|
||||
|
||||
ARG GOOS=linux
|
||||
ENV GOOS=${GOOS}
|
||||
|
||||
RUN cd /go/src/github.com/kerberos-io/agent/machinery && \
|
||||
go mod download && \
|
||||
go build -tags timetzdata,netgo,osusergo --ldflags '-s -w -extldflags "-static -latomic"' main.go && \
|
||||
|
||||
@@ -32,6 +32,9 @@ RUN cat /go/src/github.com/kerberos-io/agent/machinery/version
|
||||
##################
|
||||
# Build Machinery
|
||||
|
||||
ARG GOOS=linux
|
||||
ENV GOOS=${GOOS}
|
||||
|
||||
RUN cd /go/src/github.com/kerberos-io/agent/machinery && \
|
||||
go mod download && \
|
||||
go build -tags timetzdata,netgo,osusergo --ldflags '-s -w -extldflags "-static -latomic"' main.go && \
|
||||
|
||||
Reference in New Issue
Block a user