root@fy_svr\]# cat Dockerfile-8921 FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base #替换容器镜像的源,用指定的源来下载安装组件 RUN rm -f /etc/apt/sources.list RUN touch /etc/apt/sources.list RUN cp /etc/apt/sources.list /etc/apt/sources.list.d/orig.list \&\& \\ echo 'deb http://hub.\*\*\*.com:9081/repository/apt-proxy-debian/ bullseye main contrib non-free' \> /etc/apt/sources.list RUN echo 'deb http://hub.\*\*\*.com:9081/repository/apt-proxy-debian/ bullseye-updates main contrib non-free' \>\> /etc/apt/sources.list RUN echo 'deb http://hub.\*\*\*.com:9081/repository/apt-proxy-debian/ bullseye-backports main contrib non-free' \>\> /etc/apt/sources.list RUN rm -rf /var/lib/apt/lists/\* #RUN mkdir -p /data/ss/server/fonts RUN mkdir -p /usr/share/fonts # 1. 安装字体工具(最小化) RUN apt-get update \&\& \\ apt-get install -y --no-install-recommends \\ fontconfig \\ fonts-dejavu-core \\ fonts-liberation \&\& \\ apt-get clean \&\& rm -rf /var/lib/apt/lists/\* # 2. 复制离线字体(fonts/ 与 Dockerfile 同目录) COPY fonts/ /usr/share/fonts/truetype/custom/ # 3. 刷新缓存 \& 赋权 RUN chmod -R 755 /usr/share/fonts/truetype/custom \&\& \\ fc-cache -fv WORKDIR /data/docker/app/xa/server5 COPY . /data/docker/app/xa/server5 ENV ASPNETCORE_URLS http://+:8921 EXPOSE 8921 RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime RUN echo 'Asia/Shanghai' \> /etc/timezone ENTRYPOINT \["dotnet", "QNC.Web.Entry.dll"
相关推荐
赵民勇7 小时前
Linux/Unix中install命令全面用法解析Kendra9197 小时前
Kubernetes 常用命令Rabbit_QL7 小时前
【网络设置】Docker 自定义网络深度解析:从踩坑到工程实践苏宸啊8 小时前
Linux指令篇(一)我要升天!9 小时前
Linux中《网络基础》鸽芷咕9 小时前
【2025年度总结】时光知味,三载同行:落笔皆是沉淀,前行自有光芒羑悻的小杀马特9 小时前
指尖敲代码,笔尖写成长:2025年度总结与那些没说出口的碎碎念计算机小手10 小时前
使用 Poste.io 自建邮件服务器,Docker一键快速部署晴天¥11 小时前
VMware+Oracle linux LVM/非LVM磁盘扩容oMcLin11 小时前
如何在Oracle Linux 8.4上搭建并优化Kafka集群,确保高吞吐量的实时数据流处理与消息传递?