gorush/Dockerfile

15 lines
357 B
Docker
Raw Normal View History

# 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 /
ENTRYPOINT ["/gorush"]
CMD ["-c", "config.yml"]