wrapperr/Dockerfile
2023-02-13 09:19:11 +01:00

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}