Commit 74b7b8e7 authored by fangxinjiang's avatar fangxinjiang

字体-fxj

parent 6e33c068
FROM moxm/java:1.8-full FROM moxm/java:1.8-full
RUN mkdir -p /yifu-social-biz /usr/share/fonts/mswfonts RUN mkdir -p /yifu-social-biz
ADD /usr/share/fonts/mswfonts/simsun.ttf /usr/share/fonts/mswfonts/
WORKDIR /usr/share/fonts/mswfonts
RUN fc-cache -f -v
WORKDIR yifu-social-biz WORKDIR yifu-social-biz
...@@ -14,6 +8,11 @@ ARG JAR_FILE=target/yifu-social-biz.jar ...@@ -14,6 +8,11 @@ ARG JAR_FILE=target/yifu-social-biz.jar
COPY ${JAR_FILE} app.jar COPY ${JAR_FILE} app.jar
## 解决使用excel工具转png docker乱码没有宋体
RUN set -xe && apk --no-cache add fontconfig
COPY simsun.ttc /usr/share/fonts/
##end
EXPOSE 5002 EXPOSE 5002
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom" ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"
......
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