You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
513 B
Docker
18 lines
513 B
Docker
|
4 weeks ago
|
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
|
||
|
|
WORKDIR /app
|
||
|
|
EXPOSE 5005
|
||
|
|
|
||
|
|
COPY . .
|
||
|
|
|
||
|
|
# 设置语言/区域设置环境变量
|
||
|
|
ENV LANG zh-Hans
|
||
|
|
|
||
|
|
# 使用阿里云的镜像源进行更新
|
||
|
|
# .NET6使用
|
||
|
|
RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/' /etc/apt/sources.list
|
||
|
|
# .NET8使用
|
||
|
|
# RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/' /etc/apt/sources.list.d/debian.sources
|
||
|
|
# 更新包管理器并安装free命令
|
||
|
|
RUN apt-get update && apt-get install -y procps
|
||
|
|
|
||
|
|
ENTRYPOINT ["dotnet", "Admin.NET.Web.Entry.dll"]
|