-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (15 loc) · 699 Bytes
/
Copy pathDockerfile
File metadata and controls
18 lines (15 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
WORKDIR /src
COPY Jellyfin.Plugin.RemoteAuth/Jellyfin.Plugin.RemoteAuth.csproj Jellyfin.Plugin.RemoteAuth/
RUN dotnet restore Jellyfin.Plugin.RemoteAuth/Jellyfin.Plugin.RemoteAuth.csproj
COPY . .
RUN dotnet publish Jellyfin.Plugin.RemoteAuth/Jellyfin.Plugin.RemoteAuth.csproj \
-c Release -o /app/publish
FROM scratch AS artifact
COPY --from=build /app/publish/*.dll /
COPY --from=build /app/publish/meta.json /
FROM build AS package-build
RUN apt-get update && apt-get install -y zip && rm -rf /var/lib/apt/lists/*
RUN cd /app/publish && zip /remote-auth.zip *.dll meta.json
FROM scratch AS package
COPY --from=package-build /remote-auth.zip /