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
|
2016-08-31 16:32:41 -04:00
|
|
|
ENV ALLOW_CONTAINER_ROOT=1
|
2016-05-04 20:07:19 -04:00
|
|
|
|
|
|
|
COPY . /go/src/app
|
2016-08-31 16:32:41 -04:00
|
|
|
RUN \
|
|
|
|
apk add --no-cache git && \
|
|
|
|
go-wrapper download && \
|
|
|
|
go-wrapper install && \
|
|
|
|
mkdir -p /export/docker && \
|
|
|
|
cp /go/src/app/docs/Docker.md /export/docker/ && \
|
|
|
|
rm -rf /go/pkg /go/src && \
|
|
|
|
apk del git
|
2016-05-04 20:07:19 -04:00
|
|
|
|
|
|
|
EXPOSE 9000
|
|
|
|
ENTRYPOINT ["go-wrapper", "run", "server"]
|
2016-09-02 04:58:15 -04:00
|
|
|
VOLUME ["/export"]
|
2016-05-04 20:07:19 -04:00
|
|
|
CMD ["/export"]
|