2023-05-31 02:31:48 -04:00
|
|
|
FROM maven:3.8.5-openjdk-17-slim AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY pom.xml .
|
|
|
|
COPY src ./src
|
2023-05-31 03:04:47 -04:00
|
|
|
RUN mvn package -T12
|
2023-05-31 02:31:48 -04:00
|
|
|
|
|
|
|
FROM openjdk:11-ea-17-jre-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /app/target/LicenseServer.jar .
|
2023-05-31 02:43:59 -04:00
|
|
|
EXPOSE 7500
|
2023-05-31 02:31:48 -04:00
|
|
|
CMD ["java", "-jar", "LicenseServer.jar"]
|