Merge pull request #224 from jzelinskie/dockerfilefix

dockerfile: add comments
This commit is contained in:
Jimmy Zelinskie 2016-09-26 11:52:21 -04:00 committed by GitHub
commit 3d8fc63df3

View file

@ -1,13 +1,19 @@
FROM golang:alpine FROM golang:alpine
MAINTAINER Jimmy Zelinskie <jimmyzelinskie@gmail.com> MAINTAINER Jimmy Zelinskie <jimmyzelinskie@gmail.com>
RUN apk update && apk add curl git # Install OS-level dependencies.
RUN curl https://glide.sh/get | sh RUN apk update && \
apk add curl git && \
curl https://glide.sh/get | sh
# Copy our source code into the container.
WORKDIR /go/src/github.com/chihaya/chihaya WORKDIR /go/src/github.com/chihaya/chihaya
ADD . /go/src/github.com/chihaya/chihaya ADD . /go/src/github.com/chihaya/chihaya
# Install our golang dependencies and compile our binary.
RUN glide install RUN glide install
RUN go install github.com/chihaya/chihaya/cmd/chihaya RUN go install github.com/chihaya/chihaya/cmd/chihaya
# Expose a docker interface to our binary.
EXPOSE 6880 6881 EXPOSE 6880 6881
ENTRYPOINT ["chihaya"] ENTRYPOINT ["chihaya"]