From e516382af270bfdc16b0f780ca78b6db957d55b9 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 9 Dec 2017 17:54:19 +0800 Subject: [PATCH] feat(docker): Support alpine docker image. (#314) --- .drone.yml | 13 +++++++++++++ Dockerfile.alpine | 16 ++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 Dockerfile.alpine diff --git a/.drone.yml b/.drone.yml index 9682264..71562c1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -83,6 +83,19 @@ pipeline: event: [ push, tag ] local: false + publish_linux_alpine: + image: plugins/docker + group: release + pull: true + dockerfile: Dockerfile.alpine + secrets: [ docker_username, docker_password ] + default_tags: true + default_suffix: alpine + repo: ${DRONE_REPO} + when: + event: [ push, tag ] + local: false + publish_linux_arm: image: plugins/docker group: release diff --git a/Dockerfile.alpine b/Dockerfile.alpine new file mode 100644 index 0000000..c852b71 --- /dev/null +++ b/Dockerfile.alpine @@ -0,0 +1,16 @@ +FROM alpine:3.6 + +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" +LABEL maintainer="Bo-Yi Wu " + +RUN apk add -U --no-cache ca-certificates && \ + rm -rf /var/cache/apk/* + +ADD bin/gorush / + +EXPOSE 8088 9000 +ENTRYPOINT ["/gorush"]