Merge pull request #171 from srcyscrt/docker-eclipse-temurin #patch

Use Eclipse Temurin images in the Dockerfile
This commit is contained in:
Ponk
2023-04-22 17:33:43 +02:00
committed by GitHub

View File

@@ -4,7 +4,7 @@
# #
# Cosmic JAR creation stage # Cosmic JAR creation stage
# #
FROM maven:3.8.4-openjdk-17 AS jar FROM maven:3.9.1-eclipse-temurin-17 AS jar
# Build in a separated location which won't have permissions issues. # Build in a separated location which won't have permissions issues.
WORKDIR /opt/cosmic WORKDIR /opt/cosmic
@@ -21,7 +21,7 @@ RUN mvn -f ./pom.xml clean package -Dmaven.test.skip -T 1C
# #
# Server creation stage # Server creation stage
# #
FROM openjdk:17.0.2 FROM eclipse-temurin:17.0.6_10-jre
# Host the server in a location that won't have permissions issues. # Host the server in a location that won't have permissions issues.
WORKDIR /opt/server WORKDIR /opt/server