feat(docker): Support alpine docker image. (#314)
This commit is contained in:
parent
25becd0810
commit
e516382af2
13
.drone.yml
13
.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
|
||||
|
|
|
@ -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"]
|
Loading…
Reference in New Issue