I have .NET Core 2.0 application with Docker support. The Dockerfile is:
FROM microsoft/aspnetcore-build:2.0 AS build-env WORKDIR /app
COPY . ./
RUN dotnet publish -c Release -o out
FROM microsoft/aspnetcore:2.0
WORKDIR /app
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "Myapp.dll"]
The docker-compose.yml is:
version: '3'
services:
myapp:
build:
context: ./Myapp
dockerfile: Dockerfile
ports:
- "8000:8000"
I'm trying to execute docker-compose build and receive the next error:
FROM requires exactly one argument
Please advise what can be the issue. I'm not familiar with docker at all. I have two projects in /app folder with similar Dockerfile. The first project build is successful, but the second project fails.
Screenshot: 1