statping/Dockerfile

15 lines
301 B
Docker
Raw Normal View History

2018-06-10 01:31:13 +00:00
FROM golang:alpine as builder
RUN apk update && apk add git
2018-06-10 01:36:21 +00:00
COPY . $GOPATH/src/github.com/hunterlong/statup/
WORKDIR $GOPATH/src/github.com/hunterlong/statup/
2018-06-10 01:31:13 +00:00
RUN go get github.com/GeertJohan/go.rice/rice
RUN go get -d -v
RUN rice embed-go
RUN go install
2018-06-10 01:51:50 +00:00
WORKDIR /app
2018-06-10 01:31:13 +00:00
EXPOSE 8080
2018-06-10 01:36:21 +00:00
ENTRYPOINT statup