Externalising Spring Boot properties when deploying to Docker

DOCKER IMAGE CONFIGURATION If you look to the way Spring recommends to launch a Spring Boot powered docker container, that’s what you find: FROM openjdk:8-jdk-alpine VOLUME /tmp ARG JAR_FILE COPY ${JAR_FILE} app.jar ENTRYPOINT [“java”,”-Djava.security.egd=file:/dev/./urandom”,”-jar”,”/app.jar”] That means your image extends openjdk and your container has its own environment. If you’re doing like that, it would be … Read more