Dockerfile
This commit is contained in:
parent
8f29dfa3c3
commit
3a0a9cdbb5
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
FROM maven:3.8.5-openjdk-17-slim AS builder
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY pom.xml .
|
||||||
|
COPY src ./src
|
||||||
|
|
||||||
|
RUN mvn package -DskipTests
|
||||||
|
|
||||||
|
FROM openjdk:11-ea-17-jre-slim
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY --from=builder /app/target/LicenseServer.jar .
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
CMD ["java", "-jar", "LicenseServer.jar"]
|
Loading…
x
Reference in New Issue
Block a user