2024-08-21 23:00:35 +00:00
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
|
2024-08-18 01:37:06 +00:00
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
|
|
|
WORKDIR /src
|
2024-08-21 23:00:35 +00:00
|
|
|
COPY ["EdenicExporter.csproj", "./"]
|
|
|
|
RUN dotnet restore "EdenicExporter.csproj"
|
2024-08-18 01:37:06 +00:00
|
|
|
COPY . .
|
|
|
|
WORKDIR "/src/"
|
2024-08-21 23:00:35 +00:00
|
|
|
RUN dotnet build "EdenicExporter.csproj" -c Release -o /app/build
|
2024-08-18 01:37:06 +00:00
|
|
|
|
|
|
|
FROM build AS publish
|
2024-08-21 23:00:35 +00:00
|
|
|
RUN dotnet publish "EdenicExporter.csproj" -c Release -o /app/publish
|
2024-08-18 01:37:06 +00:00
|
|
|
|
|
|
|
FROM base AS final
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=publish /app/publish .
|
|
|
|
ENTRYPOINT ["dotnet", "EdenicExporter.dll"]
|