Melora Hugues
bd14b3c731
All checks were successful
continuous-integration/drone/push Build is passing
This commit allows using an external unix exporter to send the messages instead of directly sending the messages to Telegram
16 lines
464 B
Docker
16 lines
464 B
Docker
FROM --platform=$TARGETPLATFORM golang:1.19 AS builder
|
|
ARG TARGETPLATFORM
|
|
ARG BUILDPLATFORM
|
|
WORKDIR /go/src/git.faercol.me/public-ip-tracker/
|
|
COPY tracker ./
|
|
RUN CGO_ENABLED=0 make build
|
|
|
|
# Replace with from scratch later on
|
|
FROM --platform=$TARGETPLATFORM alpine:latest
|
|
WORKDIR /root
|
|
COPY --from=builder go/src/git.faercol.me/public-ip-tracker/build/tracker ./
|
|
|
|
VOLUME [ "/config", "/output" ]
|
|
|
|
ENTRYPOINT [ "./tracker" ]
|
|
CMD [ "-config", "/config/config.json" ]
|