Upgrade to Java 17

This commit is contained in:
Michel ten Voorde
2025-07-15 22:35:01 +02:00
parent a104e33376
commit ab5bddf1e0
10 changed files with 68 additions and 28 deletions

View File

@@ -0,0 +1,19 @@
# Use OpenJDK 17 as the base image
FROM openjdk:17-jdk-slim
# Set the working directory in the container
WORKDIR /app
# Copy the JAR file into the container
# Replace 'your-app.jar' with your actual JAR file name
COPY target/*.jar app.jar
# Expose port 8090
EXPOSE 8090
# Create a non-root user for security
RUN addgroup --system spring && adduser --system spring --ingroup spring
USER spring:spring
# Run the application
ENTRYPOINT ["java", "-jar", "app.jar"]