Failed To Resolve With FrontEnd DockerFIle.v0

后端 未结 9 2286
春和景丽
春和景丽 2021-01-17 10:49

I was trying to build my Docker image for my Gatsby Application. Whenever I run the command docker build . -t gatsbyapp, it gives me an error:

f         


        
9条回答
  •  萌比男神i
    2021-01-17 11:05

    In my case I was trying to copy over wp-content from my current directory, inside the docker image I was building. Like so:

    FROM wordpress:latest
    
    # Copy wp-content
    COPY ./wp-content/ ./var/www/html/wp-content/
    

    However, I noticed that I had a .dockerignore file, which explicitly was told to ignore wp-content.

    When I removed wp-content/ from .dockerignore it worked fine.

提交回复
热议问题