只维护2个版本一个x86 一个arm,取消精简版.统一都带图文视频(将ffmpeg打包到容器
This commit is contained in:
+10
-6
@@ -1,13 +1,17 @@
|
||||
#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:6.0-focal-arm64v8 AS base
|
||||
# 使用 Ubuntu 20.04 的 .NET 6 运行时镜像
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0-focal AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 10101
|
||||
|
||||
# 安装 ffmpeg (Ubuntu 的 universe 仓库包含 ffmpeg)
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends ffmpeg && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN ffmpeg -version
|
||||
|
||||
COPY . .
|
||||
|
||||
ENV ASPNETCORE_URLS=http://*:10101
|
||||
ENV TZ=Asia/Shanghai
|
||||
ENV DOWN_IMGVIDEO=0
|
||||
ENTRYPOINT ["dotnet", "dy.net.dll"]
|
||||
|
||||
ENTRYPOINT ["dotnet", "dy.net.dll"]
|
||||
Reference in New Issue
Block a user