Download Dockerfile from Dixith/Me_N_B: direct link, hf CLI and curl.
- Browser
- Download file 536 Bytes
-
https://huggingface.co/spaces/Dixith/Me_N_B/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Dixith/Me_N_B/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Dixith/Me_N_B/resolve/main/Dockerfile
536 Bytes
| FROM python:3.9 | |
| WORKDIR /code | |
| # Ensure the directory exists and has broad permissions | |
| RUN mkdir -p /code && chmod -R 777 /code | |
| # Copy the requirements file first to leverage Docker cache | |
| COPY ./requirements.txt /code/requirements.txt | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy the rest of the application | |
| COPY . . | |
| # Adjust permissions for everything in /code, to ensure all files are accessible | |
| RUN chmod -R 777 /code | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app"] |