Update Dockerfile

This commit is contained in:
Aune 2023-02-13 09:24:54 +01:00 committed by GitHub
parent 7d3ea26bcd
commit c19c1325fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,13 +11,7 @@ WORKDIR /app
COPY . .
RUN export GO111MODULE=on
RUN export CGO_ENABLED=0
RUN export GOOS=${TARGETOS}
RUN export GOARCH=${TARGETARCH}
RUN go build
# CGO_ENABLED=0
RUN GO111MODULE=on CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build
EXPOSE ${port}