Merge pull request #157 from isundaylee/docker-separate-dep

Separates dependency installation in Dockerfile
pull/168/head
Hunter Long 2019-03-25 11:34:10 -07:00 committed by GitHub
commit 5e22c6a17a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -8,10 +8,11 @@ RUN curl -L -s https://github.com/golang/dep/releases/download/$DEP_VERSION/dep-
RUN curl -L -s https://assets.statping.com/sass -o /usr/local/bin/sass && \
chmod +x /usr/local/bin/sass
WORKDIR /go/src/github.com/hunterlong/statping
ADD . /go/src/github.com/hunterlong/statping
ADD Makefile Gopkg.* /go/src/github.com/hunterlong/statping/
RUN make dep && \
make dev-deps && \
make install
make dev-deps
ADD . /go/src/github.com/hunterlong/statping
RUN make install
# Statping :latest Docker Image
FROM alpine:latest