Update Dockerfile
Browse files- Dockerfile +5 -18
Dockerfile
CHANGED
|
@@ -1,26 +1,13 @@
|
|
| 1 |
-
FROM python:
|
| 2 |
|
| 3 |
-
|
| 4 |
-
RUN apt-get update && apt-get install -y \
|
| 5 |
-
wget curl gnupg \
|
| 6 |
-
libnss3 libatk1.0-0 libatk-bridge2.0-0 \
|
| 7 |
-
libcups2 libdrm2 libxkbcommon0 libxcomposite1 \
|
| 8 |
-
libxdamage1 libxfixes3 libxrandr2 libgbm1 \
|
| 9 |
-
libpango-1.0-0 libcairo2 libasound2 \
|
| 10 |
-
fonts-liberation --no-install-recommends \
|
| 11 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
-
|
| 13 |
-
WORKDIR /code
|
| 14 |
|
| 15 |
COPY requirements.txt .
|
| 16 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 17 |
-
RUN playwright install chromium
|
| 18 |
-
RUN playwright install-deps chromium
|
| 19 |
-
|
| 20 |
-
COPY server.py .
|
| 21 |
|
| 22 |
-
|
| 23 |
|
| 24 |
-
|
|
|
|
| 25 |
|
| 26 |
CMD ["python", "server.py"]
|
|
|
|
| 1 |
+
FROM mcr.microsoft.com/playwright/python:v1.52.0-jammy
|
| 2 |
|
| 3 |
+
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
COPY requirements.txt .
|
| 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
+
COPY . .
|
| 9 |
|
| 10 |
+
ENV PYTHONUNBUFFERED=1
|
| 11 |
+
ENV PORT=7860
|
| 12 |
|
| 13 |
CMD ["python", "server.py"]
|