mirror of
https://github.com/aunefyren/wrapperr
synced 2024-11-10 13:44:12 +00:00
23 lines
312 B
Docker
23 lines
312 B
Docker
FROM golang
|
|
|
|
ARG TARGETARCH
|
|
ARG TARGETOS
|
|
|
|
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 go build
|
|
# CGO_ENABLED=0
|
|
|
|
EXPOSE ${port}
|
|
|
|
ENTRYPOINT /app/wrapperr -port=${port}
|