You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dockerfile and docker-compose contents.
Dockerfile
# Learn about building .NET container images:
# https://github.com/dotnet/dotnet-docker/blob/main/samples/README.md
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG TARGETARCH
WORKDIR /source
# copy csproj and restore as distinct layers
COPY aspnetapp/*.csproj .
RUN dotnet restore -a $TARGETARCH
RUN dotnet add package Grpc.AspNetCore
RUN dotnet add package MagicOnion.Server
# copy and publish app and libraries
COPY aspnetapp/. .
RUN dotnet publish -o /app
# final stage/image
FROM mcr.microsoft.com/dotnet/aspnet:8.0
# EXPOSE 8080
WORKDIR /app
COPY --from=build /app .
USER $APP_UID
ENTRYPOINT ["./aspnetapp"]
Is there an existing issue for this?
Describe the bug
I just started Windows 11 and it says, "The port is already in use." error.
Expected Behavior
No response
Steps To Reproduce
Dockerfile
docker-compose.yml
3.Run docker-compose up -d.
4.I just started Windows 11 and it says, "The port is already in use." error.
Exceptions (if any)
No response
.NET Version
8.0.204
Anything else?
.NET SDK:
Version: 8.0.204
Commit: c338c7548c
Workload version: 8.0.200-manifests.7d36c14f
runtime env:
OS Name: Windows
OS Version: 10.0.22635
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\8.0.204\
The text was updated successfully, but these errors were encountered: