update docker build (#272)

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2017-08-18 23:39:03 +08:00 committed by GitHub
parent 5d67fc7d17
commit 2bf5f06913
2 changed files with 2 additions and 8 deletions

View File

@ -35,7 +35,7 @@ pipeline:
image: appleboy/golang-testing image: appleboy/golang-testing
group: golang group: golang
commands: commands:
- make build - make docker_build
coverage: coverage:
image: appleboy/golang-testing image: appleboy/golang-testing

View File

@ -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 FROM centurylink/ca-certs
EXPOSE 8088 EXPOSE 8088
ADD config/config.yml / ADD config/config.yml /
COPY --from=build-env /go/src/github.com/appleboy/gorush/bin/gorush / ADD bin/gorush /
ENTRYPOINT ["/gorush"] ENTRYPOINT ["/gorush"]
CMD ["-c", "config.yml"] CMD ["-c", "config.yml"]