Melora Hugues
66aed0f0da
All checks were successful
continuous-integration/drone/push Build is passing
16 lines
466 B
Docker
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" ]
|