mirror of
https://github.com/aunefyren/wrapperr
synced 2025-01-10 00:38:41 +00:00
24 lines
358 B
Docker
24 lines
358 B
Docker
FROM golang
|
|
|
|
ARG TARGETARCH
|
|
ARG TARGETOS
|
|
|
|
LABEL org.opencontainers.image.source=https://github.com/aunefyren/wrapperr
|
|
|
|
ENV port=8282
|
|
|
|
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
|
|
|
|
EXPOSE ${port}
|
|
|
|
ENTRYPOINT /app/wrapperr -port=${port}
|