From 1211d499f2da4c9104f026938054957ba2030ab6 Mon Sep 17 00:00:00 2001 From: Ben Firshman Date: Mon, 6 Apr 2015 15:05:11 +0100 Subject: [PATCH] Use entrypoint in Dockerfile Signed-off-by: Ben Firshman --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 881bb90d..24d18722 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]