10 lines
442 B
Docker
10 lines
442 B
Docker
FROM alpine-java:base
|
|
MAINTAINER baeldung.com
|
|
COPY files/spring-cloud-config-server-1.0.0-SNAPSHOT.jar /opt/spring-cloud/lib/config-server.jar
|
|
ENV SPRING_APPLICATION_JSON='{"spring": {"cloud": {"config": {"server": \
|
|
{"git": {"uri": "/var/lib/spring-cloud/config-repo", "clone-on-start": true}}}}}}'
|
|
ENTRYPOINT ["/usr/bin/java"]
|
|
CMD ["-jar", "/opt/spring-cloud/lib/config-server.jar"]
|
|
VOLUME /var/lib/spring-cloud/config-repo
|
|
EXPOSE 8888
|