下载的1.5.3版本源码,WIN10系统本地运行正常
打成jar包后用Dockerfile打成镜像,这个Dockerfile是下载的githubhalo项目中的文件
服务器centos7.6运行正常,能正常发布
但是安装主题的时候会提示:run.halo.app.exception.ThemeNotSupportException: 当前主题仅支持 Halo 1.3.0 及以上的版本
不知道原因
FROM eclipse-temurin:11-jre as builder
WORKDIR application
ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} application.jar
RUN java -Djarmode=layertools -jar application.jar extract
################################
FROM eclipse-temurin:11-jre
MAINTAINER johnniang johnniang@fastmail.com
WORKDIR application
COPY --from=builder application/dependencies/ ./
COPY --from=builder application/spring-boot-loader/ ./
COPY --from=builder application/snapshot-dependencies/ ./
COPY --from=builder application/application/ ./
JVM_XMS and JVM_XMX configs deprecated for removal in halov1.4.4
ENV JVM_XMS="256m" \
JVM_XMX="256m" \
JVM_OPTS="-Xmx256m -Xms256m" \
TZ=Asia/Shanghai
RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime \
&& echo $TZ > /etc/timezone
ENTRYPOINT java -Xms${JVM_XMS} -Xmx${JVM_XMX} ${JVM_OPTS} -Djava.security.egd=file:/dev/./urandom org.springframework.boot.loader.JarLauncher