2017-08-31 06:25:56 +00:00
|
|
|
FROM alpine:3.6 as alpine
|
|
|
|
RUN apk add -U --no-cache ca-certificates
|
|
|
|
|
|
|
|
FROM scratch
|
|
|
|
MAINTAINER Bo-Yi Wi <appleboy.tw@gmail.com>
|
|
|
|
|
|
|
|
ENV GODEBUG=netdns=go
|
|
|
|
|
|
|
|
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
|
|
|
|
|
|
LABEL org.label-schema.version=latest
|
|
|
|
LABEL org.label-schema.vcs-url="https://github.com/appleboy/gorush.git"
|
|
|
|
LABEL org.label-schema.name="Gorush"
|
|
|
|
LABEL org.label-schema.vendor="Bo-Yi Wu"
|
|
|
|
LABEL org.label-schema.schema-version="1.0"
|
2016-12-07 08:40:00 +00:00
|
|
|
|
|
|
|
ADD config/config.yml /
|
2017-08-18 15:39:03 +00:00
|
|
|
ADD bin/gorush /
|
2016-12-07 08:40:00 +00:00
|
|
|
|
2017-08-31 06:25:56 +00:00
|
|
|
EXPOSE 8088
|
2016-12-07 08:40:00 +00:00
|
|
|
ENTRYPOINT ["/gorush"]
|
|
|
|
CMD ["-c", "config.yml"]
|