statping/Dockerfile

19 lines
383 B
Docker

FROM golang:1.10.3-alpine
RUN apk update && apk add git g++
WORKDIR $GOPATH/src/github.com/hunterlong/statup/
COPY . $GOPATH/src/github.com/hunterlong/statup/
RUN go get github.com/GeertJohan/go.rice/rice
RUN go get -d -v
RUN rice embed-go
RUN go install
RUN cp -r $GOPATH/src/github.com/hunterlong/statup/comms /app/
WORKDIR /app
VOLUME /app
EXPOSE 8080
CMD ["/go/bin/statup"]