惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
A
About on SuperTechFans
Microsoft Azure Blog
Microsoft Azure Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
Tailwind CSS Blog
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
Y
Y Combinator Blog
博客园 - 三生石上(FineUI控件)
大猫的无限游戏
大猫的无限游戏
Help Net Security
Help Net Security
Security Latest
Security Latest
Recorded Future
Recorded Future
S
Secure Thoughts
P
Privacy International News Feed
L
Lohrmann on Cybersecurity
Vercel News
Vercel News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Google DeepMind News
Google DeepMind News
L
LINUX DO - 热门话题
T
The Blog of Author Tim Ferriss
T
Threatpost
宝玉的分享
宝玉的分享
PCI Perspectives
PCI Perspectives
V
Vulnerabilities – Threatpost
WordPress大学
WordPress大学
C
CERT Recently Published Vulnerability Notes
GbyAI
GbyAI
S
Schneier on Security
S
Security @ Cisco Blogs
S
Securelist
SecWiki News
SecWiki News
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Jina AI
Jina AI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏
博客园 - 聂微东
H
Heimdal Security Blog
D
DataBreaches.Net
M
MIT News - Artificial intelligence
Microsoft Security Blog
Microsoft Security Blog
A
Arctic Wolf
C
Cybersecurity and Infrastructure Security Agency CISA
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Schneier on Security
Schneier on Security
C
Check Point Blog
D
Docker

博客园 - 过错

vscode的continue中配置第三方模型。以agnes-ai为例 在 Docker 容器中运行 .NET 6 并使用 libgdiplus(通常是为了支持 System.Drawing.Common 进行图片处理),你需要完成以下两个核心步骤 vs code调试netcore linux安装netcore nginx postgresql ssh 各种加速 不使用Debezium,记录PostgreSQL中的数据的数据前后变化 docker加速 python的一些设置 netcore 发布命令 一些代码库 The database cluster initialisation failed but was not the same version as initdb的解决办法(postgresql) NDVI计算 ,c#和python代码实现 使用c#调用chatgpt 。以下代码由ai自动生成。 vs Commit message的使用 Fiddler 替换资源 docker 部署 rabbitmq(持久化) 和postgresql redis mysql 油猴子常用脚本 通过nginx做身份验证网关的方法 ngnix 常用配置 Nginx配置之实现多台服务器负载均衡 Nginx配置优化详解 ngnix代理grpc
为Ubuntu24生成netcore10的镜像,
过错 · 2026-04-16 · via 博客园 - 过错

第一 注意镜像版本。 不能简单改版本号。比如8的时候是jimmy 不是noble

第二 这里添加了一些组件。使其支持windows下的一些组件。

第三 加入了阿里源,否则容器内部执行安装组件,会走官网,有的组件下载不下来。

第四 镜像的源也是用最新的地址,是mcr.azure.cn 不是老的地址

基于官方 .NET 10 Ubuntu 24.04 镜像

FROM mcr.microsoft.com/dotnet/aspnet:10.0-noble AS base

LABEL maintainer="wang2650@hhyl.com"

==============================

【终极可用版】Ubuntu 24.04 依赖安装

已删除:libgdiplus-dev(不存在)

==============================

RUN set -xe
# 1. 清理错误PPA
rm -rf /etc/apt/sources.list.d/git-core* || true
# 2. 替换阿里云HTTP源
&& rm -f /etc/apt/sources.list
&& echo "deb http://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse" > /etc/apt/sources.list
&& echo "deb http://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse" >> /etc/apt/sources.list
&& echo "deb http://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse" >> /etc/apt/sources.list
&& echo "deb http://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse" >> /etc/apt/sources.list
# 3. 更新
&& apt-get update -o Acquire::ForceIPv4=true --fix-missing
# 4. 安装依赖(删除 libgdiplus-dev)
&& apt-get install -y --no-install-recommends
curl wget ca-certificates
libssl3 libicu74 libgssapi-krb5-2
libgdiplus
fontconfig fonts-wqy-zenhei
libfontconfig1 libfreetype6
libx11-6 libxrender1 libxext6
libjpeg-dev libpng-dev
# 5. 清理
&& apt-get clean
&& rm -rf /var/lib/apt/lists/*

WORKDIR /app

生成容器

根据上面的dockerfile文件生成镜像文件
docker build -t shijianjia-app:v1 .

根据镜像文件,生成容器

docker run -d
--name shijianjia-app
--restart always
--network nk
-p 8080:8080
-e TZ=Asia/Shanghai
-v ./publish:/app
-w /app
shijianjia-app:v1
dotnet mm.Admin.WebApi.dll --urls="http://*:8080"

nk是网络名 app容器内工作路径 卷映射 当前的路径下的publish文件夹。 使用上面创建的镜像 shijianjia-app:v1