Skip to content

Commit 3402a75

Browse files
authored
Update Dockerfile
1 parent 3ac1af9 commit 3402a75

File tree

1 file changed

+4
-4
lines changed
  • src/Application/src/RazorPagesTestSample

1 file changed

+4
-4
lines changed

src/Application/src/RazorPagesTestSample/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
33
WORKDIR /app
44

55
# Copy the .csproj file and restore dependencies
6-
# COPY src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj ./
7-
# RUN dotnet restore
6+
COPY src/Application/src/RazorPagesTestSample/*.csproj ./
7+
RUN dotnet restore
88

99
# Copy the entire project and build the release version
10-
# COPY src/Application/src/RazorPagesTestSample/. ./
11-
# RUN dotnet publish -c Release -o out
10+
COPY src/Application/src/RazorPagesTestSample/. ./
11+
RUN dotnet publish -c Release -o out
1212

1313
# Use the official ASP.NET Core runtime image
1414
FROM mcr.microsoft.com/dotnet/aspnet:8.0

0 commit comments

Comments
 (0)