Below is my Dockerfile (my first ever, btw). I am trying to add a layer on the bitnami/apache image that includes my source code and call it “apache-with-code”. As you can see, COPY is failing. I am hoping to copy my source code from /var/www/html/sub_crud on my laptop to /var/www/html/sub_crud in the image. Why is this failing?
richb201@richb201-XPS-13-9370:~/myapp$ docker image build -t apache-with-code .
Sending build context to Docker daemon 2.141MB
Step 1/3 : FROM bitnami/apache:latest
Step 2/3 : WORKDIR /var/www/html/sub_crud
—> Using cache
Step 3/3 : COPY /var/www/html/sub_crud/ /var/www/html/sub_crud/
COPY failed: stat /var/lib/docker/tmp/docker-builder949400167/var/www/html/sub_crud: no such file or directory