1
0

feat(all): 完成镜像打包

This commit is contained in:
2025-08-30 10:56:46 +08:00
parent 7f3b61b854
commit fbcdbba608
11 changed files with 116 additions and 24 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM alpine/java:17
WORKDIR /app
RUN mkdir -p /app/server && mkdir -p /app/web
COPY leopard-server/target/leopard-server-1.0.0.jar /app/server
COPY leopard-web/dist /app/web
EXPOSE 9786
ENTRYPOINT [ "java", "-jar", "/app/server/leopard-server-1.0.0.jar", "--spring.profiles.active=image" ]