local-ip.sh/Dockerfile
2023-12-12 22:25:39 +01:00

22 lines
288 B
Docker

FROM golang:1.21-alpine AS build
WORKDIR /app
COPY . .
RUN go mod download
RUN CGO_ENABLED=0 go build -o /app/local-ip
FROM gcr.io/distroless/base-debian12:latest
ENV PORT 53
WORKDIR /
COPY --from=build /app/local-ip /
COPY ./.lego /.lego
EXPOSE $PORT
USER root
CMD ["/local-ip"]