From 13784de8bef1f63c379ea0c3bc63743318f2a708 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Wed, 21 Sep 2016 15:26:21 -0400 Subject: [PATCH] dockerfile: add comments --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 84c30f7..5d1486e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,19 @@ FROM golang:alpine MAINTAINER Jimmy Zelinskie -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"]