Raju2024 commited on
Commit
d194e8b
·
verified ·
1 Parent(s): d0d091e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -2,11 +2,15 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
 
 
 
5
  COPY requirements.txt .
6
- RUN pip install --no-cache-dir -r requirements.txt
 
7
 
8
  COPY . .
9
 
10
- EXPOSE 8781
11
 
12
- CMD ["python", "start_server.py"]
 
2
 
3
  WORKDIR /app
4
 
5
+ ENV PYTHONUNBUFFERED=1 \
6
+ PYTHONDONTWRITEBYTECODE=1
7
+
8
  COPY requirements.txt .
9
+ RUN pip install --no-cache-dir --upgrade pip && \
10
+ pip install --no-cache-dir -r requirements.txt
11
 
12
  COPY . .
13
 
14
+ EXPOSE 7860
15
 
16
+ CMD ["uvicorn", "puter_server:app", "--host", "0.0.0.0", "--port", "7860"]