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

Update Dockerfile to run Java 17 #24

Merged
merged 1 commit into from
Nov 10, 2023
Merged

Update Dockerfile to run Java 17 #24

merged 1 commit into from
Nov 10, 2023

Conversation

jakob-p
Copy link
Contributor

@jakob-p jakob-p commented Oct 24, 2023

The latest Version of the diga-api-client 2.0.0-beta.1 will break when validating or billing codes other then the test code because the dependency update of base32check-java to 0.1.0 requires Java 17.

This PR updates the production docker image to use Java 17. It uses the eclipse-temurin:17-alpine image to have a more lightweight docker image. It also adds a new user in order to avoid running the application as root.

  • Upgrade production docker image to use Java 17 to make the build compatible with the latest diga-api-client

  • in the production docker image create a new user so the application is not run as root

+ Upgrade production docker image to use Java 17 to make the build compatible with the latest diga-api-client

+ in the production docker image create a new user so the application is not run as root
@gtuk gtuk merged commit aff7758 into gtuk:main Nov 10, 2023
1 check passed
@gtuk
Copy link
Owner

gtuk commented Nov 10, 2023

@jakob-p thanks for your contribution. Your changes together with the changes from #25 are now released as version v2.0.0 https://github.com/gtuk/diga-api-service/releases/tag/v2.0.0

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