statping-ng/Dockerfile-dev

27 lines
638 B
Plaintext

FROM golang:1.10.3-alpine
RUN apk update && apk add git g++ libstdc++ ca-certificates
WORKDIR $GOPATH/src/github.com/hunterlong/statup
COPY . .
RUN go get github.com/GeertJohan/go.rice/rice
RUN cd cmd && go get -d -v
RUN cd source && rice embed-go
RUN cd cmd && go install && mv $GOPATH/bin/cmd /usr/local/bin/statup
RUN wget -q https://assets.statup.io/sass && \
chmod +x sass && \
mv sass /usr/local/bin/sass
ENV IS_DOCKER=true
ENV SASS=/usr/local/bin/sass
ENV CMD_FILE=/usr/bin/cmd
RUN printf "#!/usr/bin/env sh\n\$1\n" > $CMD_FILE && \
chmod +x $CMD_FILE
WORKDIR /app
VOLUME /app
EXPOSE 8080
ENTRYPOINT statup