<#21236 Docker Image Building Error> Issue created...
# github-notifications
c
#21236 Docker Image Building Error Issue created by HusseinLakkis01 Describe the bug I am new to pants but I cannot seem to able to build a docker image using package :: . I always get the error where I cannot copy contents of the context directory to the container. It seems that it is missing the context. I provide the context in the build file but it still doesnt work. Is there anything to set in the config toml?
Copy code
FROM python:3.10
RUN mkdir -p /app
# Set the working directory in the container
WORKDIR /app

COPY . /app

RUN pip install --no-cache-dir -r requirements.txt

# tun uvicorn with the main module
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
>> ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
Pants version 2.21.0 OS MacOS Additional info Add any other information about the problem here, such as attachments or links to gists, if relevant. pantsbuild/pants