telegram-notifier/Dockerfile
Melora Hugues 66aed0f0da
All checks were successful
continuous-integration/drone/push Build is passing
Make sure the notifier can work inside Docker
2023-03-11 20:42:21 +01:00

16 lines
466 B
Docker

FROM --platform=$TARGETPLATFORM golang:1.20 AS builder
ARG TARGETPLATFORM
ARG BUILDPLATFORM
WORKDIR /go/src/git.faercol.me/telegram-notifier/
COPY notifier ./
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/telegram-notifier/build/notifier ./
VOLUME [ "/config", "/input" ]
ENTRYPOINT [ "./notifier" ]
CMD [ "-config", "/config/config.json" ]