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