add Dockerfile
All checks were successful
build-push / build (push) Successful in 9m36s

This commit is contained in:
zheyun 2026-11-02 22:13:27 +08:00
parent 2f7300ffd4
commit 940e77d8eb
2 changed files with 11 additions and 0 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
target/
*.log

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM maven:3.9-eclipse-temurin-17 AS build
WORKDIR /build
COPY . .
RUN mvn -q -DskipTests package
FROM eclipse-temurin:8-jre
WORKDIR /app
COPY --from=build /build/target/yqj-server.jar /app/app.jar
EXPOSE 8080
CMD ["java","-Xms256m","-Xmx512m","-jar","/app/app.jar"]