diff --git a/app/Dockerfile b/app/Dockerfile index 9e3579b..fa960f1 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base USER $APP_UID WORKDIR /app EXPOSE 8080 @@ -7,17 +7,17 @@ EXPOSE 8081 FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build ARG BUILD_CONFIGURATION=Release WORKDIR /src -COPY ["ReleaseImageGenerator/ReleaseImageGenerator.csproj", "ReleaseImageGenerator/"] -RUN dotnet restore "ReleaseImageGenerator/ReleaseImageGenerator.csproj" +COPY ["ReleaseImageGenerator/ReleaseImageGenerator.API.csproj", "ReleaseImageGenerator/"] +RUN dotnet restore "ReleaseImageGenerator/ReleaseImageGenerator.API.csproj" COPY . . WORKDIR "/src/ReleaseImageGenerator" -RUN dotnet build "ReleaseImageGenerator.csproj" -c $BUILD_CONFIGURATION -o /app/build +RUN dotnet build "ReleaseImageGenerator.API.csproj" -c $BUILD_CONFIGURATION -o /app/build FROM build AS publish ARG BUILD_CONFIGURATION=Release -RUN dotnet publish "ReleaseImageGenerator.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false +RUN dotnet publish "ReleaseImageGenerator.API.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false FROM base AS final WORKDIR /app COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "ReleaseImageGenerator.dll"] +ENTRYPOINT ["dotnet", "ReleaseImageGenerator.API.dll"]