LicenseServer/Dockerfile

11 lines
272 B
Docker
Raw Normal View History

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 16:45:19 -04:00
RUN mvn clean package -T12
2023-05-31 02:31:48 -04:00
2023-05-31 18:02:10 -04:00
FROM openjdk:17.0.1-jdk-slim
2023-05-31 16:45:19 -04:00
WORKDIR /usr/local/app
2023-05-31 02:31:48 -04:00
COPY --from=builder /app/target/LicenseServer.jar .
2023-05-31 02:43:59 -04:00
EXPOSE 7500
2023-05-31 18:49:09 -04:00
CMD ["java", "-jar", "LicenseServer.jar"]