fix dockerfile workdir command

This commit is contained in:
Damien Ostler 2024-01-27 08:25:14 -05:00
parent 03a06546b7
commit aff7713122

View File

@ -11,7 +11,7 @@ COPY ["/src/ArtPlatform.API/ArtPlatform.API.csproj", "ArtPlatform.API/"]
COPY ["/src/ArtPlatform.Database/ArtPlatform.Database.csproj", "ArtPlatform.Database/"] COPY ["/src/ArtPlatform.Database/ArtPlatform.Database.csproj", "ArtPlatform.Database/"]
RUN dotnet restore "ArtPlatform.API/ArtPlatform.API.csproj" RUN dotnet restore "ArtPlatform.API/ArtPlatform.API.csproj"
COPY . . COPY . .
WORKDIR "/src/ArtPlatform.API" WORKDIR "/src/ArtPlatform/ArtPlatform.API"
RUN dotnet build "ArtPlatform.API.csproj" -c $BUILD_CONFIGURATION -o /app/build RUN dotnet build "ArtPlatform.API.csproj" -c $BUILD_CONFIGURATION -o /app/build
FROM build AS publish FROM build AS publish