Skip to content

Commit

Permalink
修改dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
MuXia-0326 committed Sep 24, 2023
1 parent 1f43dec commit 63fbf36
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
FROM openjdk:8-jdk-alpine

VOLUME /tmp
# 设置阿里云镜像源
RUN echo "http://mirrors.aliyun.com/alpine/v3.14/main" > /etc/apk/repositories && \
echo "http://mirrors.aliyun.com/alpine/v3.14/community" >> /etc/apk/repositories

ADD ./target/*.jar /auto_plan.jar
# 安装字体配置工具和其他必要工具
RUN apk update && apk --no-cache add fontconfig ttf-dejavu

RUN set -xe && apk --no-cache add fontconfig
# 复制字体文件
COPY ./docker-run/times.ttf /usr/share/fonts/

VOLUME /tmp
ADD ./target/*.jar /auto_plan.jar
EXPOSE 26666

ENTRYPOINT ["java","-jar","auto_plan.jar","--spring.config.location=/tmp/yml/application.yml"]

0 comments on commit 63fbf36

Please sign in to comment.