Skip to content

Commit

Permalink
Update Dockerfile with EXPOSE and correct dotnet restore path
Browse files Browse the repository at this point in the history
Added EXPOSE 8080 to Dockerfile to specify runtime port.
Modified RUN dotnet restore to use correct project path.
  • Loading branch information
bvdcode committed Nov 22, 2024
1 parent 265061c commit 053c952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Link2Stream.Server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["Link2Stream.Server.csproj", "Link2Stream.Server/"]
RUN dotnet restore "./Link2Stream.Server/Link2Stream.Server.csproj"
RUN dotnet restore "./Link2Stream.Server.csproj"
COPY . .
WORKDIR "/src/Link2Stream.Server"
RUN dotnet build "./Link2Stream.Server.csproj" -c $BUILD_CONFIGURATION -o /app/build
Expand Down

0 comments on commit 053c952

Please sign in to comment.