Merge pull request #224 from jzelinskie/dockerfilefix
dockerfile: add comments
This commit is contained in:
commit
3d8fc63df3
1 changed files with 8 additions and 2 deletions
10
Dockerfile
10
Dockerfile
|
@ -1,13 +1,19 @@
|
|||
FROM golang:alpine
|
||||
MAINTAINER Jimmy Zelinskie <jimmyzelinskie@gmail.com>
|
||||
|
||||
RUN apk update && apk add curl git
|
||||
RUN curl https://glide.sh/get | sh
|
||||
# Install OS-level dependencies.
|
||||
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
|
||||
ADD . /go/src/github.com/chihaya/chihaya
|
||||
|
||||
# Install our golang dependencies and compile our binary.
|
||||
RUN glide install
|
||||
RUN go install github.com/chihaya/chihaya/cmd/chihaya
|
||||
|
||||
# Expose a docker interface to our binary.
|
||||
EXPOSE 6880 6881
|
||||
ENTRYPOINT ["chihaya"]
|
||||
|
|
Loading…
Reference in a new issue