mirror of https://github.com/statping/statping
23 lines
692 B
Plaintext
23 lines
692 B
Plaintext
![]() |
FROM golang:1.10.3-alpine
|
||
![]() |
MAINTAINER "Hunter Long (https://github.com/hunterlong)"
|
||
![]() |
# Statup 'test' image for running a full test using the production environment
|
||
![]() |
|
||
![]() |
RUN apk add --no-cache libstdc++ gcc g++ make git ca-certificates linux-headers wget curl
|
||
![]() |
|
||
![]() |
RUN curl -L -s https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 -o /go/bin/dep && \
|
||
|
chmod +x /go/bin/dep
|
||
|
|
||
|
RUN curl -L -s https://assets.statup.io/sass -o /usr/local/bin/sass && \
|
||
![]() |
chmod +x /usr/local/bin/sass
|
||
![]() |
|
||
![]() |
WORKDIR /go/src/github.com/hunterlong/statup
|
||
|
ADD . /go/src/github.com/hunterlong/statup
|
||
|
|
||
![]() |
ENV VERSION=$(VERSION)
|
||
|
ENV IS_DOCKER=true
|
||
![]() |
|
||
![]() |
RUN make dev-deps
|
||
![]() |
RUN make install
|
||
|
|
||
![]() |
EXPOSE 8080
|
||
![]() |
ENTRYPOINT make run
|