statping/dev/Dockerfile-dev

29 lines
768 B
Plaintext
Raw Normal View History

ARG VERSION
2018-10-06 05:00:40 +00:00
FROM golang:1.11-alpine
2018-08-17 23:06:40 +00:00
MAINTAINER "Hunter Long (https://github.com/hunterlong)"
# Statup 'test' image for running a full test using the production environment
2018-08-18 01:13:31 +00:00
2018-10-06 22:46:26 +00:00
ENV DEP_VERSION=v0.5.0
2018-08-17 21:23:28 +00:00
RUN apk add --no-cache libstdc++ gcc g++ make git ca-certificates linux-headers wget curl
2018-10-06 22:46:26 +00:00
RUN curl -L -s https://github.com/golang/dep/releases/download/$DEP_VERSION/dep-linux-amd64 -o /go/bin/dep && \
2018-08-18 02:19:56 +00:00
chmod +x /go/bin/dep
RUN curl -L -s https://assets.statup.io/sass -o /usr/local/bin/sass && \
2018-08-18 00:07:33 +00:00
chmod +x /usr/local/bin/sass
2018-08-18 02:19:56 +00:00
WORKDIR /go/src/github.com/hunterlong/statup
ADD . /go/src/github.com/hunterlong/statup
ENV VERSION=${VERSION}
2018-08-18 00:07:33 +00:00
ENV IS_DOCKER=true
2018-10-06 22:46:26 +00:00
RUN make dep
2018-08-19 00:57:28 +00:00
RUN make dev-deps
2018-08-19 08:48:02 +00:00
RUN make install
2018-08-21 01:22:42 +00:00
WORKDIR /app
VOLUME /app
EXPOSE 8080
ENTRYPOINT statup