pls
This commit is contained in:
parent
01f330f770
commit
669b6a1dfc
@ -37,6 +37,5 @@ jobs:
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
push: true
|
||||
context: ./
|
||||
file: ./Dockerfile
|
||||
context: .
|
||||
tags: git.rainnny.club/rainnny/licenseserver:latest
|
11
Dockerfile
11
Dockerfile
@ -1,18 +1,11 @@
|
||||
FROM maven:3.8.5-openjdk-17-slim AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY pom.xml .
|
||||
COPY src ./src
|
||||
|
||||
RUN mvn package -DskipTests
|
||||
RUN mvn package
|
||||
|
||||
FROM openjdk:11-ea-17-jre-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/target/LicenseServer.jar .
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
EXPOSE 7500
|
||||
CMD ["java", "-jar", "LicenseServer.jar"]
|
Loading…
x
Reference in New Issue
Block a user