23 lines
966 B
Plaintext
23 lines
966 B
Plaintext
#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 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 && \
|
|
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"]
|