😎更新dockerfile文件
This commit is contained in:
parent
cf7f64c48d
commit
23c60abe7b
@ -1,4 +1,4 @@
|
|||||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 5005
|
EXPOSE 5005
|
||||||
|
|
||||||
@ -8,10 +8,8 @@ COPY . .
|
|||||||
ENV LANG zh-Hans
|
ENV LANG zh-Hans
|
||||||
|
|
||||||
# 使用阿里云的镜像源进行更新
|
# 使用阿里云的镜像源进行更新
|
||||||
# .NET6使用
|
|
||||||
RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/' /etc/apt/sources.list
|
|
||||||
# .NET8使用
|
# .NET8使用
|
||||||
# RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/' /etc/apt/sources.list.d/debian.sources
|
RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/' /etc/apt/sources.list.d/debian.sources
|
||||||
# 更新包管理器并安装free命令
|
# 更新包管理器并安装free命令
|
||||||
RUN apt-get update && apt-get install -y procps
|
RUN apt-get update && apt-get install -y procps
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user