statping-ng/Dockerfile

17 lines
307 B
Docker

FROM golang: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
WORKDIR /app
VOLUME /app
EXPOSE 8080
ENTRYPOINT statup