diff --git a/Verax_API_EF/Dockerfile b/Verax_API_EF/Dockerfile index ba3a213..b997d1b 100644 --- a/Verax_API_EF/Dockerfile +++ b/Verax_API_EF/Dockerfile @@ -1,12 +1,10 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env WORKDIR / COPY . Verax/ -RUN cd Verax/ -RUN cd Verax_API_EF/ -RUN dotnet restore Verax_API_EF.sln -RUN dotnet publish -c Release -o out --no-restore Verax_API_EF.sln +RUN dotnet restore /Verax/Verax_API_EF/Verax_API_EF.sln +RUN dotnet publish -c Release -o out --no-restore /Verax/Verax_API_EF/Verax_API_EF.sln FROM mcr.microsoft.com/dotnet/aspnet:8.0 WORKDIR / -COPY --from=build-env /Verax/out . +COPY --from=build-env /out . ENTRYPOINT ["dotnet", "API.dll"] \ No newline at end of file