This repository has been archived on 2021-09-02. You can view files and clone it, but cannot push or open issues or pull requests.
my-bloody-hetzner-sb-notifier/Dockerfile_with_build

14 lines
373 B
Plaintext

FROM golang:1.11-stretch as builder
RUN mkdir /hetzner-sb-notifier
COPY . /hetzner-sb-notifier/
WORKDIR /hetzner-sb-notifier
RUN chmod +x build.sh
RUN /hetzner-sb-notifier/build.sh linux
RUN ls -lth /hetzner-sb-notifier/builds
FROM golang:alpine
COPY --from=builder /hetzner-sb-notifier/builds /root
ENTRYPOINT ["/root/hetzner-sb-notifier_linux_amd64_1.0"]