mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-05-09 18:23:21 +08:00
update dockerfile. (#99)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
65e15c4aab
commit
f943ff7179
@ -23,7 +23,7 @@ pipeline:
|
||||
pull: true
|
||||
group: golang
|
||||
commands:
|
||||
- make build
|
||||
- make docker_build
|
||||
|
||||
test:
|
||||
image: appleboy/golang-testing
|
||||
|
@ -1,7 +1,3 @@
|
||||
FROM appleboy/golang-testing AS build-env
|
||||
ADD . /go/src/github.com/appleboy/drone-ssh
|
||||
RUN cd /go/src/github.com/appleboy/drone-ssh && make docker_build
|
||||
|
||||
FROM alpine:3.4
|
||||
|
||||
RUN apk update && \
|
||||
@ -10,5 +6,5 @@ RUN apk update && \
|
||||
openssh-client && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
COPY --from=build-env /go/src/github.com/appleboy/drone-ssh/drone-ssh /bin
|
||||
ADD drone-ssh /bin/
|
||||
ENTRYPOINT ["/bin/drone-ssh"]
|
||||
|
Loading…
Reference in New Issue
Block a user