RishiXD commited on
Commit
32feb29
·
verified ·
1 Parent(s): 9bf3d6e

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -28
Dockerfile DELETED
@@ -1,28 +0,0 @@
1
- # Use an official lightweight Python image.
2
- # https://hub.docker.com/_/python
3
- FROM python:3.9-slim
4
-
5
- # Set environment variables
6
- ENV PYTHONDONTWRITEBYTECODE=1
7
- ENV PYTHONUNBUFFERED=1
8
-
9
- # Set work directory
10
- WORKDIR /code
11
-
12
- # Install dependencies
13
- COPY requirements.txt /code/requirements.txt
14
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
15
-
16
- # Copy project including `backend_app` directory
17
- COPY . /code/
18
-
19
- # Expose the API port (Hugging Face Spaces defaults to 7860)
20
- EXPOSE 7860
21
-
22
- # Add both /code and /code/backend to PYTHONPATH to ensure backend_app can be imported
23
- # regardless of whether the build context was root or the backend folder.
24
- ENV PYTHONPATH="/code:/code/backend:$PYTHONPATH"
25
-
26
- # Command to run the application using uvicorn.
27
- # We use 'sh -c' to inspect the directory structure before starting, which helps debug 'ModuleNotFoundError'.
28
- CMD ["sh", "-c", "ls -R /code && uvicorn backend_app.main:app --host 0.0.0.0 --port 7860"]