mirror of
https://github.com/aunefyren/wrapperr
synced 2024-11-10 13:44:12 +00:00
24 lines
403 B
Docker
24 lines
403 B
Docker
FROM golang:1.20.4-bullseye as builder
|
|
|
|
ARG TARGETARCH
|
|
ARG TARGETOS
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN GO111MODULE=on CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build
|
|
|
|
FROM debian:bullseye-slim as runtime
|
|
|
|
ENV port=8282
|
|
|
|
LABEL org.opencontainers.image.source=https://github.com/aunefyren/wrapperr
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /app .
|
|
|
|
EXPOSE ${port}
|
|
|
|
ENTRYPOINT /app/wrapperr -port=${port}
|