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
380 B
Text
Raw Normal View History

2018-10-26 12:34:01 +02:00
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 centurylink/ca-certs
COPY --from=builder /hetzner-sb-notifier/builds /root
ENTRYPOINT ["/root/hetzner-sb-notifier_linux_amd64_1.0"]