Skip to content

Commit b7c50a8

Browse files
Copilotjongalloway
andcommitted
Fix Docker build path in GitHub Actions workflow
Co-authored-by: jongalloway <[email protected]>
1 parent ba6f7cb commit b7c50a8

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ jobs:
282282
- name: Build Docker image (test build)
283283
run: |
284284
echo "🐳 Building Docker image for testing..."
285-
docker build -t nlwebnet-demo:test .
285+
docker build -f deployment/docker/Dockerfile -t nlwebnet-demo:test .
286286
echo "✅ Docker build successful"
287287
288288
- name: Test Docker image

samples/Demo/NLWebNet.Demo.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77
<RootNamespace>NLWebNet.Demo</RootNamespace>
88
<UserSecretsId>031db3ba-2870-4c49-b002-5f532463e55e</UserSecretsId>
99
</PropertyGroup>
10+
11+
<!-- Container configuration -->
12+
<PropertyGroup>
13+
<ContainerImageName>nlwebnet-demo</ContainerImageName>
14+
<ContainerImageTag>latest</ContainerImageTag>
15+
<ContainerPort>8080</ContainerPort>
16+
<ContainerWorkingDirectory>/app</ContainerWorkingDirectory>
17+
</PropertyGroup>
1018
<ItemGroup>
1119
<ProjectReference Include="..\..\src\NLWebNet\NLWebNet.csproj" />
1220
</ItemGroup><ItemGroup>

0 commit comments

Comments
 (0)