
structure.deployment.dockerfile.mustache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scaffold-clean-architecture Show documentation
Show all versions of scaffold-clean-architecture Show documentation
Gradle plugin to create a clean application in Java that already works, It follows our best practices!
{{#java17}}
FROM eclipse-temurin:17-jdk-alpine
{{/java17}}
{{#java21}}
FROM eclipse-temurin:21-jdk-alpine
{{/java21}}
VOLUME /tmp
COPY *.jar {{projectName}}.jar
ENV JAVA_OPTS=" -Xshareclasses:name=cacheapp,cacheDir=/cache,nonfatal -XX:+UseContainerSupport -XX:MaxRAMPercentage=70 -Djava.security.egd=file:/dev/./urandom"
# Replace with a non-root user to avoid running the container with excessive privileges
USER appuser
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -jar {{projectName}}.jar" ]
© 2015 - 2025 Weber Informatics LLC | Privacy Policy