feat(docker): Support alpine docker image. (#314)

This commit is contained in:
Bo-Yi Wu 2017-12-09 17:54:19 +08:00 committed by GitHub
parent 25becd0810
commit e516382af2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions

View File

@ -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

16
Dockerfile.alpine Normal file
View File

@ -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 <appleboy.tw@gmail.com>"
RUN apk add -U --no-cache ca-certificates && \
rm -rf /var/cache/apk/*
ADD bin/gorush /
EXPOSE 8088 9000
ENTRYPOINT ["/gorush"]