Separates dependency installation in Dockerfile

pull/157/head
Jiahao Li 2019-03-20 19:43:15 -04:00
parent 763cf981be
commit b08743ea1c
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 && \ RUN curl -L -s https://assets.statping.com/sass -o /usr/local/bin/sass && \
chmod +x /usr/local/bin/sass chmod +x /usr/local/bin/sass
WORKDIR /go/src/github.com/hunterlong/statping 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 && \ RUN make dep && \
make dev-deps && \ make dev-deps
make install ADD . /go/src/github.com/hunterlong/statping
RUN make install
# Statping :latest Docker Image # Statping :latest Docker Image
FROM alpine:latest FROM alpine:latest