Skip to content

Commit

Permalink
Merge pull request #5 from trueberryless-org/update-template-files
Browse files Browse the repository at this point in the history
[ci] sync template files
  • Loading branch information
trueberryless authored Mar 2, 2025
2 parents fbac640 + d4c8d4d commit c1a3c0d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"]

0 comments on commit c1a3c0d

Please sign in to comment.