Claude Code commited on
Commit
cfee8f7
·
1 Parent(s): 8e382ba

god: manual intervention patch - Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -4
Dockerfile CHANGED
@@ -1,4 +1,23 @@
1
- # Fix entrypoint path and permissions
2
- COPY entrypoint.sh /entrypoint.sh
3
- RUN chmod +x /entrypoint.sh
4
- ENTRYPOINT ["/entrypoint.sh"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Fix Python path issues and ensure proper WORKDIR
2
+ FROM python:3.10-slim
3
+
4
+ WORKDIR /app
5
+
6
+ # Install system dependencies
7
+ RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
8
+
9
+ # Copy requirements first for better caching
10
+ COPY requirements.txt .
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Copy application code
14
+ COPY . .
15
+
16
+ # Expose port 7860
17
+ EXPOSE 7860
18
+
19
+ # Set PYTHONPATH to /app
20
+ ENV PYTHONPATH=/app
21
+
22
+ # Run the application with uvicorn
23
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]