Skip to content

Commit 8fcae56

Browse files
committed
Refactor project file and Dockerfile for improved structure and clarity
1 parent ab7982b commit 8fcae56

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/Gitcg.NetCord.MainApp/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ EXPOSE 8081
77
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
88
ARG BUILD_CONFIGURATION=Release
99
WORKDIR /src
10+
COPY ["Directory.Packages.props", "."]
1011
COPY ["src/Gitcg.NetCord.MainApp/Gitcg.NetCord.MainApp.csproj", "src/Gitcg.NetCord.MainApp/"]
1112
COPY ["src/ServiceDefaults/ServiceDefaults.csproj", "src/ServiceDefaults/"]
1213
RUN dotnet restore "src/Gitcg.NetCord.MainApp/Gitcg.NetCord.MainApp.csproj"

src/Gitcg.NetCord.MainApp/Gitcg.NetCord.MainApp.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212
<ProjectReference Include="..\ServiceDefaults\ServiceDefaults.csproj" />
1313
</ItemGroup>
1414

15-
<ItemGroup>
16-
<Content Include="..\..\.dockerignore">
17-
<Link>.dockerignore</Link>
18-
</Content>
19-
</ItemGroup>
20-
2115
<ItemGroup>
2216
<PackageReference Include="Aspire.Npgsql.EntityFrameworkCore.PostgreSQL" />
2317
<PackageReference Include="Aspire.StackExchange.Redis.DistributedCaching" />
@@ -29,4 +23,10 @@
2923
<PackageReference Include="NetCord.Hosting.Services" />
3024
</ItemGroup>
3125

26+
<ItemGroup>
27+
<Content Include="..\..\.dockerignore">
28+
<Link>.dockerignore</Link>
29+
</Content>
30+
</ItemGroup>
31+
3232
</Project>

0 commit comments

Comments
 (0)