Use Eclipse Temurin images in the Dockerfile

This commit is contained in:
srcyscrt
2023-04-22 18:43:23 +08:00
committed by GitHub
parent 36d0f8a2a0
commit 61f451694f

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