edenic-exporter/Dockerfile
2024-08-22 00:00:35 +01:00

19 lines
502 B
Docker

FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY ["EdenicExporter.csproj", "./"]
RUN dotnet restore "EdenicExporter.csproj"
COPY . .
WORKDIR "/src/"
RUN dotnet build "EdenicExporter.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "EdenicExporter.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "EdenicExporter.dll"]