docker build doesn't work
Narragansett opened this issue · 2 comments
Narragansett commented
Windows and Mac both give the same error, how to fix this??
Step 2/2 : COPY build /usr/share/nginx/html
COPY failed: stat /var/lib/docker/tmp/docker-builder802860079/build: no such file or directory
xurongyang commented
You need to run 'npm run build' first.
rinormaloku commented
@Narragansett I too would be surprised going into a project executing docker build
and have it fail on me.
A better practice is building everything from the source code during docker build (additionally optimizing image size with multistage builds).
That would be a little too much for a beginner, and I kept it simple.
Thanks @xurongyang!