Skip to content

failed to solve: the Dockerfile cannot be empty #8994

@Surojitmendine

Description

@Surojitmendine

Problem encountered on https://dotnet.microsoft.com/en-us/learn/aspnet/microservice-tutorial/docker-image
Operating System: windows

Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.

D:\MyMicroservice>docker build -t mymicroservice .
[+] Building 0.0s (2/2) FINISHED docker:default
=> [internal] load .dockerignore 0.0s
=> => transferring context: 34B 0.0s
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 31B 0.0s
ERROR: failed to solve: the Dockerfile cannot be empty

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stalearea-dockerneeds-more-infoNot enough information has been provided. Please share more detail as requested.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions