New position of project inside Dockerfile

This commit is contained in:
Benjamin
2024-11-22 09:25:26 +01:00
parent a10982edf7
commit 498f56479c

View File

@@ -9,7 +9,7 @@ EXPOSE 8081
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release ARG BUILD_CONFIGURATION=Release
WORKDIR /src WORKDIR /src
COPY ["pointMaster.csproj", "./"] COPY ["pointMaster/pointMaster.csproj", "pointMaster/"]
RUN dotnet restore "./pointMaster.csproj" RUN dotnet restore "./pointMaster.csproj"
COPY . . COPY . .
WORKDIR "/src" WORKDIR "/src"