Hana Celeste commited on
Commit
3a3135c
·
verified ·
1 Parent(s): 51eac9c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -1
Dockerfile CHANGED
@@ -9,7 +9,15 @@ RUN apt-get update && apt-get install -y \
9
 
10
  COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
 
 
 
12
  RUN playwright install chromium
13
 
14
  COPY . .
15
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
 
9
 
10
  COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ RUN chmod -R +x /usr/local/lib/python3.10/dist-packages/undetected_playwright/driver/
14
+
15
  RUN playwright install chromium
16
 
17
  COPY . .
18
+
19
+ RUN chmod -R 777 /app
20
+
21
+ ENV PYTHONUNBUFFERED=1
22
+
23
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]