修复安装错误issue #1

This commit is contained in:
邓滨杰
2025-09-11 15:27:33 +08:00
parent 4893714683
commit 2bbfd16c7d
167 changed files with 425535 additions and 1 deletions

24
deploy/open/Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
FROM eclipse-temurin:21-jre
ENV TZ=Asia/Shanghai \
LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
SPRING_PROFILES_ACTIVE=prod \
JVM_XMS=512m \
JVM_XMX=512m
# Fix JDK 21 reflective access for BigDecimal in Spring Data Mongo
ENV JAVA_TOOL_OPTIONS="--add-opens=java.base/java.math=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED"
WORKDIR /app
# Copy prebuilt server jar and web assets (paths are relative to build context: deploy)
COPY dist/ainoval-server.jar /app/ainoval-server.jar
COPY dist/web/ /app/web/
EXPOSE 18080
# Serve the prebuilt web from filesystem via Spring static locations
CMD sh -c "java -Xms${JVM_XMS} -Xmx${JVM_XMX} -Dfile.encoding=UTF-8 -Dspring.web.resources.static-locations=file:/app/web/ -jar /app/ainoval-server.jar"