wrapperr/Dockerfile
2023-02-13 09:28:59 +01:00

18 lines
313 B
Docker

FROM golang:1.19.0-bullseye
ARG TARGETARCH
ARG TARGETOS
LABEL org.opencontainers.image.source=https://github.com/aunefyren/wrapperr
ENV port=8282
WORKDIR /app
COPY . .
RUN GO111MODULE=on CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build
EXPOSE ${port}
ENTRYPOINT /app/wrapperr -port=${port}