You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
392 B
19 lines
392 B
FROM golang:1.7-alpine
|
|
|
|
WORKDIR /go/src/app
|
|
ENV ALLOW_CONTAINER_ROOT=1
|
|
|
|
COPY . /go/src/app
|
|
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
|
|
|
|
EXPOSE 9000
|
|
ENTRYPOINT ["go-wrapper", "run", "server"]
|
|
VOLUME ["/export"]
|
|
CMD ["/export"]
|
|
|