Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgerlag authored Jan 16, 2025
1 parent 01e4463 commit d0d29ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions reactions/gremlin/gremlin-reaction/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@

#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.

FROM mcr.microsoft.com/dotnet/sdk:8.0-cbl-mariner2.0 AS build
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-cbl-mariner2.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY . .
RUN dotnet restore
RUN dotnet build -c $BUILD_CONFIGURATION -o /app/build

FROM mcr.microsoft.com/dotnet/aspnet:8.0-cbl-mariner2.0 AS final
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0-cbl-mariner2.0 AS final
WORKDIR /app
COPY --from=build /app/build .
ENTRYPOINT ["/app/gremlin-reaction"]
ENTRYPOINT ["/app/gremlin-reaction"]

0 comments on commit d0d29ac

Please sign in to comment.