wrapperr/Dockerfile
2023-10-23 18:38:36 +02:00

17 lines
312 B
Docker

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