初始化

This commit is contained in:
2026-02-11 18:58:44 +08:00
commit 5331f61192
10 changed files with 2136 additions and 0 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM maven:3.8.1-jdk-8-slim as build
WORKDIR /workdir
COPY ./pom.xml ./pom.xml
COPY src ./src/
RUN mvn package -DskipTests
FROM openjdk:8u212-jre as runtime
COPY --from=build /workdir/target/bomaos-shop-*.jar /app/app.jar
# 设置时区
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
ENTRYPOINT ["java", "-server", "-Xms1024M", "-Xmx1024M", "-Djava.security.egd=file:/dev/./urandom", "-Dfile.encoding=UTF-8", "-XX:+HeapDumpOnOutOfMemoryError", "-jar", "/app/app.jar" ]