#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging. FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base WORKDIR /app EXPOSE 9040 COPY . . #设置时间为中国上海 环境为开发环境 ENV TZ=Asia/Shanghai # 更新 apt 源 COPY sources.list /etc/apt/sources.list RUN apt-get update RUN apt-get install -y ffmpeg ENV ASPNETCORE_URLS=http://+:9040 ENTRYPOINT ["dotnet", "Learn.VideoAnalysis.dll"]