Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

Docker Error: failed to solve with frontend dockerfile.v0: failed to create LLB definition: the Dockerfile cannot be empty

08.03.2023 (👁3265)


 

Solution: first save the file with ctrl+s and then run docker build

Ein Bild, das Text, Screenshot, Monitor, schwarz enthält.

Automatisch generierte Beschreibung

 

Dockerfile oder myfile.docker für Asp .Net 7 Web API

FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env

WORKDIR /app

 

COPY *.csproj ./

RUN dotnet restore

 

COPY . ./

RUN dotnet publish -c Release -o out

 

FROM mcr.microsoft.com/dotnet/aspnet:7.0

WORKDIR /app

COPY --from=build-env /app/out .

 

ENTRYPOINT [ "dotnet","PlatformService.dll" ]