前端优化
arm-ffmpeg DockerFile
This commit is contained in:
+5
-11
@@ -1,24 +1,18 @@
|
||||
#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
|
||||
|
||||
RUN echo "deb http://mirrors.aliyun.com/debian/ bookworm main non-free contrib" > /etc/apt/sources.list && \
|
||||
echo "deb http://mirrors.aliyun.com/debian-security/ bookworm-security main" >> /etc/apt/sources.list && \
|
||||
echo "deb http://mirrors.aliyun.com/debian/ bookworm-updates main non-free contrib" >> /etc/apt/sources.list && \
|
||||
echo "deb http://mirrors.aliyun.com/debian/ bookworm-backports main non-free contrib" >> /etc/apt/sources.list && \
|
||||
apt-get update && \
|
||||
# 安装 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=1
|
||||
ENTRYPOINT ["dotnet", "dy.net.dll"]
|
||||
|
||||
ENTRYPOINT ["dotnet", "dy.net.dll"]
|
||||
Reference in New Issue
Block a user