anyonehomep1mane commited on
Commit
ed86e9f
·
1 Parent(s): 8c2ef6e

Dockerfile changes

Browse files
Dockerfile CHANGED
@@ -1,25 +1,24 @@
1
- # Dockerfile (for custom HF Spaces deployment)
2
- # Use: In HF Spaces, select "Docker" runtime and upload this Dockerfile.
3
 
4
  FROM python:3.10-slim
5
 
6
- # Set working directory
7
  WORKDIR /app
8
 
9
- # Install system dependencies (if needed for any libs)
10
  RUN apt-get update && apt-get install -y \
11
  libmagic1 \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
- # Copy requirements and install
15
  COPY requirements.txt .
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
- # Copy application code
19
- COPY app.py .
 
 
 
20
 
21
- # Expose Gradio port
22
  EXPOSE 7860
23
 
24
- # Run the app
25
  CMD ["python", "app.py"]
 
1
+ # Dockerfile (HF Spaces – Docker runtime)
 
2
 
3
  FROM python:3.10-slim
4
 
 
5
  WORKDIR /app
6
 
7
+ # System deps
8
  RUN apt-get update && apt-get install -y \
9
  libmagic1 \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
+ # Python deps
13
  COPY requirements.txt .
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
+ # Copy ALL project files (not just app.py)
17
+ COPY . .
18
+
19
+ # Ensure repo root is on PYTHONPATH
20
+ ENV PYTHONPATH=/app
21
 
 
22
  EXPOSE 7860
23
 
 
24
  CMD ["python", "app.py"]
llm/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (153 Bytes). View file
 
prompts/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (157 Bytes). View file
 
utils/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (155 Bytes). View file