finalzed build

This commit is contained in:
Mahmoud Rahbar Azad 2018-10-26 12:34:01 +02:00
parent 2619e02988
commit c0539ade72
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 7DBBD39E2BFEB784
6 changed files with 38 additions and 23 deletions

14
Dockerfile_with_build Normal file
View file

@ -0,0 +1,14 @@
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"]