Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bytter til distroless image og endrer til docker-build-push for å generere sbom ved bygging #613

Merged
merged 6 commits into from
Jan 9, 2025

Conversation

mortenbyhring
Copy link
Contributor

No description provided.

@mortenbyhring mortenbyhring requested a review from a team as a code owner January 8, 2025 13:02
Comment on lines +3 to +6
ENV JAVA_OPTS='-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp'
ENV LANG='nb_NO.UTF-8' LANGUAGE='nb_NO:nb' LC_ALL='nb:NO.UTF-8' TZ="Europe/Oslo"
ENTRYPOINT ["java", "-jar", "/app.jar"]
EXPOSE 8080
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Er det dokumentert noe sted at vi må bruke disse innstillingene?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vi *må nok ikke - men en sterk oppfordring / anbefaling fra app sec-teamet om å bruke distroless hvertfall.
heapdumpOnOutOfMemoryError er bare min egen kjepphest, den synes jeg er kjekk å ha på

Og det er dokumentert noe her;
https://sikkerhet.nav.no/docs/sikker-utvikling/containere#distroless

@mortenbyhring mortenbyhring merged commit dd9dfa5 into master Jan 9, 2025
5 checks passed
@mortenbyhring mortenbyhring deleted the dev/bygg branch January 9, 2025 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants