pls
This commit is contained in:
parent
01f330f770
commit
669b6a1dfc
@ -37,6 +37,5 @@ jobs:
|
|||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
context: ./
|
context: .
|
||||||
file: ./Dockerfile
|
|
||||||
tags: git.rainnny.club/rainnny/licenseserver:latest
|
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
|
FROM maven:3.8.5-openjdk-17-slim AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY pom.xml .
|
COPY pom.xml .
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
|
RUN mvn package
|
||||||
RUN mvn package -DskipTests
|
|
||||||
|
|
||||||
FROM openjdk:11-ea-17-jre-slim
|
FROM openjdk:11-ea-17-jre-slim
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --from=builder /app/target/LicenseServer.jar .
|
COPY --from=builder /app/target/LicenseServer.jar .
|
||||||
|
EXPOSE 7500
|
||||||
EXPOSE 8080
|
|
||||||
|
|
||||||
CMD ["java", "-jar", "LicenseServer.jar"]
|
CMD ["java", "-jar", "LicenseServer.jar"]
|
1
pom.xml
1
pom.xml
@ -15,7 +15,6 @@
|
|||||||
<version>1.0.0</version>
|
<version>1.0.0</version>
|
||||||
<description>A simple open-source licensing server for your products.</description>
|
<description>A simple open-source licensing server for your products.</description>
|
||||||
|
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>17</java.version>
|
<java.version>17</java.version>
|
||||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user