PYAE1994 commited on
Commit
f192e9d
·
verified ·
1 Parent(s): 6668612

Simple proxy to OpenHands Cloud

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -9
Dockerfile CHANGED
@@ -2,19 +2,13 @@ FROM python:3.12-slim
2
 
3
  ENV PYTHONUNBUFFERED=1
4
  ENV PORT=7860
5
- ENV OPENHANDS_SUPPRESS_BANNER=1
6
 
7
  WORKDIR /app
8
 
9
- # Install uv for faster package installation
10
- RUN pip install uv
11
 
12
- # Copy requirements
13
- COPY requirements.txt .
14
-
15
- # Install dependencies with uv (faster and handles caching better)
16
- RUN uv pip install --system -r requirements.txt
17
 
18
  EXPOSE 7860
19
 
20
- CMD ["python", "-m", "openhands.agent_server.__main__", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  ENV PYTHONUNBUFFERED=1
4
  ENV PORT=7860
 
5
 
6
  WORKDIR /app
7
 
8
+ RUN pip install --no-cache-dir fastapi uvicorn httpx pydantic
 
9
 
10
+ COPY server.py .
 
 
 
 
11
 
12
  EXPOSE 7860
13
 
14
+ CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]