gtuk / diga-api-service

This project is a basic api around the excellent diga-api-client It supports validation and billing.
Apache License 2.0
7 stars 4 forks source link

Update Dockerfile to run Java 17 #24

Closed jakob-p closed 11 months ago

jakob-p commented 1 year ago

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.

gtuk commented 11 months ago

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