public-ip-tracker/Dockerfile
Melora Hugues 34b3156d64
All checks were successful
continuous-integration/drone/push Build is passing
Add Dockerfile
This commit adds a first working Dockerfile for this program, as well as
instructions on how to use it. This will need more detailing in the
future, but this will do for now.
2023-01-28 15:11:36 +01:00

14 lines
362 B
Docker

FROM golang:1.19 AS builder
WORKDIR /go/src/git.faercol.me/public-ip-tracker/
COPY tracker ./
RUN CGO_ENABLED=0 make build
# Replace with from scratch later on
FROM alpine:latest
WORKDIR /root
COPY --from=builder go/src/git.faercol.me/public-ip-tracker/build/tracker ./
VOLUME [ "/config" ]
ENTRYPOINT [ "./tracker" ]
CMD [ "-config", "/config/config.json" ]