Commit 5424d1b9 by zhangxingmin

push

parent fa920879
# 使用官方 LibreOffice 镜像作为基础
FROM librepdf/oracle-jdk-8-libreoffice:latest
# 使用更小的 Alpine 基础镜像
FROM openjdk:8-jre-alpine
# 维护人
LABEL maintainer="zxm<2060197959@qq.com>"
......@@ -7,11 +7,26 @@ LABEL maintainer="zxm<2060197959@qq.com>"
# 创建目录
RUN mkdir -p /home/app
# 安装 Alpine 版本的 LibreOffice(依赖更少)
RUN apk add --no-cache \
libreoffice \
libreoffice-writer \
libreoffice-lang-zh_cn \
ttf-dejavu \
ttf-droid \
ttf-freefont \
ttf-liberation \
font-noto-emoji \
font-noto-cjk \
&& fc-cache -f -v
# 设置环境变量
ENV LANG=zh_CN.UTF-8 \
LANGUAGE=zh_CN:zh \
LC_ALL=zh_CN.UTF-8
# 拷贝项目jar
COPY target/yd-oss-api-1.0-SNAPSHOT-exec.jar /home/app/yd-oss-api.jar
# 执行命令启动jar
ENTRYPOINT ["java", "-jar", "/home/app/yd-oss-api.jar"]
# 暴露端口
EXPOSE 9106
\ No newline at end of file
......@@ -268,6 +268,7 @@ public class PdfServiceImpl<T> implements PdfService<T> {
String[] parts = url.toString().split("\\?");
// 取问号之前的部分
String returnUrl = parts[0];
returnUrl = returnUrl.replace("http","https");
return returnUrl;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment