Elysiadev11 commited on
Commit
f056653
·
verified ·
1 Parent(s): 7a642d7

Update Dockerfile to run proxy_cerebras.py (which now contains our app.py code)

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -5
Dockerfile CHANGED
@@ -1,10 +1,13 @@
1
- FROM python:3.10
 
 
 
 
2
 
3
  WORKDIR /app
4
 
5
- COPY requirements.txt .
6
- RUN pip install --no-cache-dir -r requirements.txt
7
 
8
- COPY . .
9
 
10
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.11-slim
2
+
3
+ ENV PYTHONUNBUFFERED=1
4
+
5
+ RUN pip install --no-cache-dir fastapi "uvicorn[standard]" httpx python-multipart
6
 
7
  WORKDIR /app
8
 
9
+ COPY proxy_cerebras.py /app/proxy_cerebras.py
 
10
 
11
+ EXPOSE 7860
12
 
13
+ CMD ["python", "-m", "uvicorn", "proxy_cerebras:app", "--host", "0.0.0.0", "--port", "7860"]