Initial commit

This commit is contained in:
m5r
2022-10-27 23:19:23 +02:00
commit 5d58353e99
7 changed files with 391 additions and 0 deletions

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM golang:1.19-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-debian11
ENV PORT 53
WORKDIR /
COPY --from=build /app/local-ip /
EXPOSE $PORT
USER root
CMD ["/local-ip"]