生产配置

This commit is contained in:
马梓彭 2026-04-26 09:42:57 +08:00
parent 23a0a746e4
commit 34f7ddc4db
2 changed files with 7 additions and 4 deletions

View File

@ -8,13 +8,16 @@ ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# 安装字体和依赖 # 安装字体和依赖
RUN apt-get update && apt-get install -y \ RUN sed -i "s@deb.debian.org@mirrors.aliyun.com@g" /etc/apt/sources.list.d/debian.sources && \
apt-get update && \
apt-get install -y --no-install-recommends \
fonts-liberation \ fonts-liberation \
fonts-dejavu-core \ fonts-dejavu-core \
fonts-wqy-zenhei \ fonts-wqy-zenhei \
fonts-wqy-microhei \ fonts-wqy-microhei \
fonts-noto-cjk \ fonts-noto-cjk \
fontconfig \ fontconfig \
curl \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*

View File

@ -3,6 +3,6 @@ Serve.Run(RunOptions.Default
.ConfigureBuilder(builder => .ConfigureBuilder(builder =>
{ {
// 确保容器内绑定到所有IP,端口9996 // 确保容器内绑定到所有IP,端口9996
builder.WebHost.UseUrls("http://*:9996"); builder.WebHost.UseUrls("http://*:9997");
}) })
); );