I have file docker-compose.yml in /docker/all-in-one folder of my root project.
services:
all-in-one:
build:
context: ../..
dockerfile: Dockerfile.all-in-one
container_name: all-in-one
In my root , I have file Dockerfile.all-in-one:
FROM busybox
COPY ./docker/all-in-one/scripts /context
RUN ls -al /context
I run command:
cd docker/all-in-one folder
docker compose up -d
I got error:
Then, I change code for debugging purpose:
COPY . /context
Again re-run using docker compose up, I don’t see folder listing.
However, when I run command from root project using:
docker build --no-cache -f "Dockerfile.all-in-one" -t ali .
I could see docker folder as shown from docker build output.
I also tried changing context and file security but no luck. I will greatly appreciate if you let me know how accomplish this in windows.
3