-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.BackgroundHandler
More file actions
28 lines (20 loc) · 985 Bytes
/
Copy pathDockerfile.BackgroundHandler
File metadata and controls
28 lines (20 loc) · 985 Bytes
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
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY ["BackgroundHandler/BackgroundHandler.csproj", "BackgroundHandler/"]
COPY ["Repository/Repository.csproj", "Repository/"]
COPY ["Models/Models.csproj", "Model/"]
COPY ["Core/Core.csproj", "Core/"]
RUN dotnet restore "BackgroundHandler/BackgroundHandler.csproj"
COPY . .
WORKDIR "/src/BackgroundHandler"
RUN dotnet build "BackgroundHandler.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "BackgroundHandler.csproj" -c Release -o /app/publish
FROM mcr.microsoft.com/dotnet/aspnet:10.0-noble AS base
ENV PGAPPNAME=BackgroundHandler
LABEL maintainer="Donald Gray <donald.gray@digirati.com>, Jack Lewis <jack.lewis@digirati.com>"
LABEL org.opencontainers.image.source=https://github.com/dlcs/iiif-presentation
LABEL org.opencontainers.image.description="Background handler for iiif presentation"
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "BackgroundHandler.dll"]