Hana Celeste commited on
Update Dockerfile
Browse files- 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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"]
|