My tree
is as follows:
project
│
│ file001.txt
| file002.txt
| file003.txt
│
└───.devcontainer
│ Dockerfile
│ docker-compose.yml
| requirements.txt
And my goal is to create a container using the following Dockerfile and copy all the contents of the parent file under the newly created /app dir in the container.
My Dockerfile is as follows:
FROM python:3.9.10-alpine3.14
WORKDIR /app
RUN pip install --upgrade pip
RUN mkdir -p /app
RUN apk add build-base
COPY ./requirements.txt /tmp/
**# !!!! This part is not working !!!!!!
COPY ../ /app**
RUN pip3 install -r /tmp/requirements.txt
ENTRYPOINT ["tail", "-f", "/dev/null"]
I haven't managed to find a proper solution. I tried add but the results are the same. Nothing happens.
Thanks in advance