edenic-exporter/Dockerfile

19 lines
527 B
Docker
Raw Normal View History

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