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" ]