feat:增加Docker部署

This commit is contained in:
2025-10-16 17:41:16 +08:00
parent 6ccc3911a8
commit 2e4c1046a0
3 changed files with 17 additions and 6 deletions

6
Dockerfile Normal file
View File

@@ -0,0 +1,6 @@
FROM openjdk:17-jdk
ARG JAR_FILE=target/*.jar
COPY $JAR_FILE app.jar
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' > /etc/timezone
ENTRYPOINT ["java","-jar","/app.jar"]