Skip to content

Commit 0dbfb0b

Browse files
committed
Fix Dockerfile paths and ENTRYPOINT case consistency
Updated `RUN dotnet restore` in both `Dockerfile.Linux` and `Dockerfile.Windows` to use the correct path for `Console.csproj`. Modified `ENTRYPOINT` commands to reference `console.dll` in lowercase for case consistency. Adjusted `RUN dotnet publish` commands for consistent build configuration and output paths. These changes enhance the reliability of the Docker build process across Linux and Windows environments. #76
1 parent e8e0a20 commit 0dbfb0b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docker/Dockerfile.Linux

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ WORKDIR /code
99

1010
COPY ["src/Console.csproj", "src/Console/"]
1111

12-
RUN dotnet restore "./src/Console.csproj"
12+
RUN dotnet restore "./src/Console/Console.csproj"
1313

1414
COPY . .
1515
WORKDIR "/code/src/Console"
@@ -25,4 +25,4 @@ USER app
2525
WORKDIR /app
2626
EXPOSE 6264
2727
COPY --from=publish /app/publish .
28-
ENTRYPOINT ["dotnet", "Console.dll"]
28+
ENTRYPOINT ["dotnet", "console.dll"]

docker/Dockerfile.Windows

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ WORKDIR /code
1111

1212
COPY ["src/Console.csproj", "src/Console/"]
1313

14-
RUN dotnet restore "./src/Console.csproj"
14+
RUN dotnet restore "./src/Console/Console.csproj"
1515

1616
COPY . .
1717
WORKDIR "/code/src/Console"
@@ -26,4 +26,4 @@ FROM mcr.microsoft.com/dotnet/aspnet:9.0-nanoserver-ltsc2022
2626
WORKDIR /app
2727
EXPOSE 6264
2828
COPY --from=publish /app/publish .
29-
ENTRYPOINT ["dotnet", "Console.dll"]
29+
ENTRYPOINT ["dotnet", "console.dll"]

0 commit comments

Comments
 (0)