Melora Hugues
34b3156d64
All checks were successful
continuous-integration/drone/push Build is passing
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.
14 lines
362 B
Docker
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" ]
|