From 2bf5f06913df9ea670cf855e60dae184e9ba2ee5 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Fri, 18 Aug 2017 23:39:03 +0800 Subject: [PATCH] update docker build (#272) Signed-off-by: Bo-Yi Wu --- .drone.yml | 2 +- Dockerfile | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index ab97998..efc001a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -35,7 +35,7 @@ pipeline: image: appleboy/golang-testing group: golang commands: - - make build + - make docker_build coverage: image: appleboy/golang-testing diff --git a/Dockerfile b/Dockerfile index 0b9fc9e..0889f97 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,8 @@ -# build stage -FROM appleboy/golang-testing AS build-env -ADD . /go/src/github.com/appleboy/gorush -RUN cd /go/src/github.com/appleboy/gorush && make docker_build - -# final stage FROM centurylink/ca-certs EXPOSE 8088 ADD config/config.yml / -COPY --from=build-env /go/src/github.com/appleboy/gorush/bin/gorush / +ADD bin/gorush / ENTRYPOINT ["/gorush"] CMD ["-c", "config.yml"]