Вот начало моего файла Docker, в котором возникает ошибка.
Код: Выделить всё
# Use the official .NET SDK image to build the app
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
ENV ASPNETCORE_ENVIRONMENT=Development
ENV CONNECTION_STRING=""
ENV JWT_KEY=""
# Copy the files
COPY . .
# Publish each project in the solution
RUN dotnet publish APIGateway -c Release -o /app/publish/APIGateway
# Use the official .NET runtime image to run the app
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime
WORKDIR /app
Подробнее здесь: https://stackoverflow.com/questions/792 ... ion-dotnet