Ao digitar o comando docker-compose build o seguinte erro aparece:
abilio@abilio-VirtualBox:~/Downloads/alura-docker-cap06/docker$ docker-compose build
mongodb uses an image, skipping
Building nginx
Step 1/8 : FROM nginx:latest
latest: Pulling from library/nginx
54fec2fa59d0: Pull complete
4ede6f09aefe: Pull complete
f9dc69acb465: Pull complete
Digest: sha256:86ae264c3f4acb99b2dee4d0098c40cb8c46dcf9e1148f05d3a51c4df6758c12
Status: Downloaded newer image for nginx:latest
---> 602e111c06b6
Step 2/8 : MAINTAINER Douglas Quintanilha
---> Running in 7eccbaa12be8
Removing intermediate container 7eccbaa12be8
---> 4be91745b60a
Step 3/8 : COPY /public /var/www/public
ERROR: Service 'nginx' failed to build: COPY failed: stat /var/lib/docker/tmp/docker-builder463981616/public: no such file or directory
abilio@abilio-VirtualBox:~/Downloads/alura-docker-cap06/docker$ ^C
Meu arquivo nginx.dockerfile esta dessa forma:
FROM nginx:latest
MAINTAINER Douglas Quintanilha
COPY /public /var/www/public
COPY /docker/config/nginx.conf /etc/nginx/nginx.conf
RUN chmod 755 -R /var/www/public
EXPOSE 80 443
ENTRYPOINT ["nginx"]
# Parametros extras para o entrypoint
CMD ["-g", "daemon off;"]