updated dockerfile

This commit is contained in:
Damien Ostler 2024-01-27 06:59:42 -05:00
parent 76c9ecb262
commit 869e096c27
2 changed files with 5 additions and 4 deletions

View File

@ -17,14 +17,14 @@
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ArtPlatform.Database\ArtPlatform.Database.csproj" />
</ItemGroup>
<ItemGroup>
<Content Include="..\.dockerignore">
<Link>.dockerignore</Link>
</Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ArtPlatform.Database\ArtPlatform.Database.csproj" />
</ItemGroup>
</Project>

View File

@ -8,6 +8,7 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["ArtPlatform.API/ArtPlatform.API.csproj", "ArtPlatform.API/"]
COPY ["ArtPlatform.Database/ArtPlatform.Database.csproj", "ArtPlatform.Database/"]
RUN dotnet restore "ArtPlatform.API/ArtPlatform.API.csproj"
COPY . .
WORKDIR "/src/ArtPlatform.API"