2016-09-22 19:32:54 -04:00
|
|
|
FROM golang:1.7-alpine
|
2016-05-04 20:07:19 -04:00
|
|
|
|
|
|
|
WORKDIR /go/src/app
|
|
|
|
|
|
|
|
COPY . /go/src/app
|
2016-08-31 16:32:41 -04:00
|
|
|
RUN \
|
|
|
|
apk add --no-cache git && \
|
|
|
|
go-wrapper download && \
|
2016-10-12 21:09:08 -04:00
|
|
|
go-wrapper install -ldflags "$(go run buildscripts/gen-ldflags.go)" && \
|
2016-08-31 16:32:41 -04:00
|
|
|
mkdir -p /export/docker && \
|
2016-10-31 05:50:55 -04:00
|
|
|
cp /go/src/app/docs/docker/README.md /export/docker/ && \
|
2016-08-31 16:32:41 -04:00
|
|
|
rm -rf /go/pkg /go/src && \
|
|
|
|
apk del git
|
2016-05-04 20:07:19 -04:00
|
|
|
|
|
|
|
EXPOSE 9000
|
2016-10-12 21:09:08 -04:00
|
|
|
ENTRYPOINT ["go-wrapper", "run"]
|
2016-09-02 04:58:15 -04:00
|
|
|
VOLUME ["/export"]
|