Example project for Spring Boot application running inside a read-only docker container
APACHE-2.0 License
Example project for Spring Boot application running inside a read-only docker container.
Basically these steps are currently required:
server.tomcat.basedir=/tmp/tomcat
to application.properties
/tmp/tomcat
and static
within Dockerfile
See https://github.com/spring-projects/spring-boot/issues/8578 for background information.
./gradlew build
docker build -t spring-boot-docker-readonly .
docker run -ti --rm --read-only spring-boot-docker-readonly
Don't consider this as a recommended solution! It's a ugly hack - for demonstration purposes only!