Merge pull request #326 from bfirsh/use-entrypoint-in-dockerfile

Use entrypoint in Dockerfile
pull/331/head
Stephen Day 2015-04-06 15:23:40 -07:00
commit 688d1b805c
1 changed files with 2 additions and 4 deletions

View File

@ -1,14 +1,12 @@
FROM golang:1.4
ENV CONFIG_PATH /etc/docker/registry/config.yml
ENV DISTRIBUTION_DIR /go/src/github.com/docker/distribution
ENV GOPATH $DISTRIBUTION_DIR/Godeps/_workspace:$GOPATH
WORKDIR $DISTRIBUTION_DIR
COPY . $DISTRIBUTION_DIR
RUN make PREFIX=/go clean binaries
RUN mkdir -pv "$(dirname $CONFIG_PATH)"
RUN cp -lv ./cmd/registry/config.yml $CONFIG_PATH
EXPOSE 5000
CMD registry $CONFIG_PATH
ENTRYPOINT ["registry"]
CMD ["cmd/registry/config.yml"]