Skip to content

Commit

Permalink
Merge pull request #157 from isundaylee/docker-separate-dep
Browse files Browse the repository at this point in the history
Separates dependency installation in Dockerfile
  • Loading branch information
hunterlong committed Mar 25, 2019
2 parents 88f1a51 + 4ee63d7 commit 5e22c6a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Expand Up @@ -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
Expand Down

0 comments on commit 5e22c6a

Please sign in to comment.