File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,11 +6,6 @@ COPY . /app
66
77WORKDIR ${FOLDER}
88
9- # Debug: List files to see what was copied
10- RUN ls -la
11- RUN ls -la *.csproj || echo "No .csproj files found"
12-
13- # Try to publish with explicit project file
149RUN dotnet publish component-blazor.csproj -c Release -o out
1510
1611FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
@@ -24,4 +19,5 @@ COPY --from=build ${FOLDER}/out ./
2419EXPOSE 5054
2520
2621ENV ASPNETCORE_URLS=http://+:5054
22+
2723CMD ["dotnet" , "component-blazor.dll" ]
Original file line number Diff line number Diff line change @@ -6,16 +6,14 @@ COPY --chown=1000:1000 . /app
66
77WORKDIR $FOLDER
88
9- # Create directory for data protection keys
10- RUN mkdir -p /tmp/keys && chown 1000:1000 /tmp/keys
11-
129USER 1000:1000
1310
1411EXPOSE 5054
1512
16- # Environment variables for Docker development
1713ENV ASPNETCORE_URLS=http://+:5054
14+
1815ENV ASPNETCORE_ENVIRONMENT=Development
16+
1917ENV ASPNETCORE_HTTPS_PORT=""
2018
2119CMD [ "dotnet", "watch", "--no-launch-profile"]
You can’t perform that action at this time.
0 commit comments