-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
31 lines (22 loc) · 707 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM mcr.microsoft.com/dotnet/sdk:7.0 as build
# Copy source code
COPY ["OF DL.sln", "/src/OF DL.sln"]
COPY ["OF DL", "/src/OF DL"]
WORKDIR "/src"
# Build release
RUN dotnet publish -c Release -o out
FROM mcr.microsoft.com/dotnet/runtime:7.0-jammy
# Install dependencies
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN add-apt-repository -y ppa:ubuntuhandbook1/ffmpeg6
RUN apt-get update
RUN apt-get install -y ffmpeg
# Copy release and entrypoint script
COPY --from=build /src/out /app
ADD docker/entrypoint.sh /app
RUN chmod +x /app/entrypoint.sh
RUN mkdir /data # For downloaded files
RUN mkdir /config # For configuration files
WORKDIR /config
CMD /app/entrypoint.sh