Skip to content

Commit 172fb4d

Browse files
authored
Update Dockerfile
1 parent 9af6e5a commit 172fb4d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Application/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
22
WORKDIR /app
33

44
# Copy csproj and restore as distinct layers
5-
COPY *.csproj ./
6-
RUN dotnet restore
5+
COPY src/test.txt
6+
#RUN dotnet restore
77

88
# Copy everything else and build
9-
COPY . ./
10-
RUN dotnet publish -c Release -o out
9+
#COPY . ./
10+
#RUN dotnet publish -c Release -o out
1111

1212
# Build runtime image
1313
FROM mcr.microsoft.com/dotnet/aspnet:8.0
1414
WORKDIR /app
15-
COPY --from=build-env /app/out .
15+
#COPY --from=build-env /app/out .
1616
# Default ASP.NET port changed with .NET 8.0
17-
ENV ASPNETCORE_HTTP_PORTS=80
18-
ENTRYPOINT ["dotnet", "RazorPagesTestSample.dll"]
17+
#ENV ASPNETCORE_HTTP_PORTS=80
18+
#ENTRYPOINT ["dotnet", "RazorPagesTestSample.dll"]

0 commit comments

Comments
 (0)