Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
raga70 authored Apr 3, 2024
1 parent 8ecdaee commit 4c67244
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Backend/RecommendationAlgo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ EXPOSE 8081
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["RecomendationAlgo/RecommendationAlgo.csproj", "RecomendationAlgo/"]
RUN dotnet restore "RecomendationAlgo/RecommendationAlgo.csproj"
COPY ["RecommendationAlgo/RecommendationAlgo.csproj", "RecomendationAlgo/"]
RUN dotnet restore "RecommendationAlgo/RecommendationAlgo.csproj"
COPY . .
WORKDIR "/src/RecomendationAlgo"
WORKDIR "/src/RecommendationAlgo"
RUN dotnet build "RecommendationAlgo.csproj" -c $BUILD_CONFIGURATION -o /app/build

FROM build AS publish
Expand All @@ -22,4 +22,4 @@ FROM base AS final
ENV CONSUL_IP=consul-service
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "RecomendationAlgo.dll"]
ENTRYPOINT ["dotnet", "RecommendationAlgo.dll"]

0 comments on commit 4c67244

Please sign in to comment.