first commit

This commit is contained in:
2021-11-10 20:06:12 +01:00
commit 2fcfa91545
29 changed files with 2724 additions and 0 deletions

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM golang:1.17-alpine as builder
WORKDIR /app
COPY . .
RUN apk add make && make build
# Build final image
FROM scratch
WORKDIR /app
COPY --from=builder /app/whatismyip /usr/bin/
EXPOSE 8080
ENTRYPOINT ["whatismyip"]