Open xokthilat opened 3 years ago
@mikasaloli thanks for reporting this kind of bug, but unlucky that I'm not using Mac M1 right now to develop so I cannot reproduce this bug. If anyone has Mac M1, I would like he/she can help me with that
It doesn’t look like it got anything to do with m1, looks more like build path is wrong
` clean-architecture-dotnet git:(main) ✗ sudo docker-compose build --no-cache postgresql uses an image, skipping placement uses an image, skipping redis uses an image, skipping settingapp-dapr uses an image, skipping customerapp-dapr uses an image, skipping productapp-dapr uses an image, skipping webapigatewayapp-dapr uses an image, skipping Building settingapp [+] Building 2.5s (15/17)
=> [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 680B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 35B 0.0s => [internal] load metadata for mcr.microsoft.com/dotnet/sdk:6.0 0.2s => [internal] load metadata for mcr.microsoft.com/dotnet/aspnet:6.0 0.2s => [internal] load build context 0.1s => => transferring context: 33.98kB 0.1s => [build 1/7] FROM mcr.microsoft.com/dotnet/sdk:6.0@sha256:1c008d2e442b82f7dd0118999f439c5641efdcd527f40b44bff6c273d8836a04 0.0s => [base 1/2] FROM mcr.microsoft.com/dotnet/aspnet:6.0@sha256:044457748f69c79c5617cbf3c2da389e8833d8bead76a6875e9df071868bc74c 0.0s => CACHED [build 2/7] WORKDIR /src 0.0s => CACHED [base 2/2] WORKDIR /app 0.0s => CACHED [final 1/2] WORKDIR /app 0.0s => [build 3/7] COPY [samples/Setting/SettingService.Api/SettingService.Api.csproj, SettingService.Api/] 0.0s => [build 4/7] RUN dotnet restore "./SettingService.Api/SettingService.Api.csproj" 0.6s => [build 5/7] COPY . . 0.1s => [build 6/7] WORKDIR /src/SettingService.Api 0.0s => ERROR [build 7/7] RUN dotnet build "SettingService.Api.csproj" -c Release -o /app/build 1.4s
im new for dotnet and docker also looking for simple architecture project for long run. seem like its trying to find main method inside docker. any help would be greatly appreciated