Copy dev-config.yml to config.yml at image build time
This preserves the previously documented mountpoint for the configuration file. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
This commit is contained in:
parent
2b74c46795
commit
2619eee69b
1 changed files with 2 additions and 1 deletions
|
@ -10,9 +10,10 @@ ENV DOCKER_BUILDTAGS include_rados
|
||||||
|
|
||||||
WORKDIR $DISTRIBUTION_DIR
|
WORKDIR $DISTRIBUTION_DIR
|
||||||
COPY . $DISTRIBUTION_DIR
|
COPY . $DISTRIBUTION_DIR
|
||||||
|
COPY cmd/registry/dev-config.yml $DISTRIBUTION_DIR/cmd/registry/config.yml
|
||||||
RUN make PREFIX=/go clean binaries
|
RUN make PREFIX=/go clean binaries
|
||||||
|
|
||||||
VOLUME ["/var/lib/registry"]
|
VOLUME ["/var/lib/registry"]
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
ENTRYPOINT ["registry"]
|
ENTRYPOINT ["registry"]
|
||||||
CMD ["cmd/registry/dev-config.yml"]
|
CMD ["cmd/registry/config.yml"]
|
||||||
|
|
Loading…
Reference in a new issue