sarmaddev commited on
Commit
c633779
·
1 Parent(s): be5f4d9

fix uv issues with hugging face spaces

Browse files
Files changed (2) hide show
  1. Dockerfile +10 -2
  2. pyproject.toml +0 -10
Dockerfile CHANGED
@@ -14,8 +14,16 @@ WORKDIR /app
14
  COPY . .
15
 
16
 
17
- # Use uv to sync (this will create a fresh .venv and install your dependencies)
18
- RUN uv sync
 
 
 
 
 
 
 
 
19
 
20
  # Add the .venv/bin directory to the PATH so that chainlit is accessible
21
  ENV PATH="/app/.venv/bin:${PATH}"
 
14
  COPY . .
15
 
16
 
17
+ FROM python:3.10-slim
18
+
19
+ WORKDIR /app
20
+
21
+ COPY . .
22
+
23
+ RUN pip install --no-cache-dir -r requirements.txt
24
+
25
+ CMD ["chainlit", "run", "app.py", "-w"]
26
+
27
 
28
  # Add the .venv/bin directory to the PATH so that chainlit is accessible
29
  ENV PATH="/app/.venv/bin:${PATH}"
pyproject.toml DELETED
@@ -1,10 +0,0 @@
1
- [project]
2
- name = "Teaching_agent"
3
- version = "0.1.0"
4
- description = "Teaching agent using OpenAI Agent SDK"
5
- readme = "README.md"
6
- requires-python = ">=3.12"
7
- dependencies = [
8
- "chainlit>=2.4.400",
9
- "openai-agents>=0.0.9",
10
- ]