mirror of
https://github.com/aunefyren/wrapperr
synced 2024-09-20 14:12:01 +00:00
Update Dockerfile
This commit is contained in:
parent
5e1204ac4f
commit
7d3ea26bcd
1 changed files with 5 additions and 4 deletions
|
@ -7,14 +7,15 @@ LABEL org.opencontainers.image.source=https://github.com/aunefyren/wrapperr
|
|||
|
||||
ENV port=8282
|
||||
|
||||
ENV GO111MODULE=on
|
||||
ENV GOOS=${TARGETOS}
|
||||
ENV GOARCH=${TARGETARCH}
|
||||
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue