Complete dockerfile toolkit with generation and validation capabilities
94
94%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Advisory
Suggest reviewing before use
You are given the following Dockerfile for a production Java service:
FROM openjdk:17
WORKDIR /app
ENV JAVA_OPTS="-Xmx512m"
ENV DB_PASSWORD=secret123
COPY target/app.jar /app/app.jar
COPY config/ /app/config/
EXPOSE 8080
EXPOSE 8443
EXPOSE 9090
HEALTHCHECK --interval=30s --timeout=10s CMD curl -f http://localhost:8080/health || exit 1
CMD ["sh", "-c", "java $JAVA_OPTS -jar /app/app.jar"]Pre-validation check: no .dockerignore file exists in the build context.
Run the complete 4-stage validation workflow mentally and produce a full findings report.
Then produce the final summary report with: