-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f43dec
commit 63fbf36
Showing
1 changed file
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |