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
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.