|
|
FROM python:3.10 |
|
|
|
|
|
|
|
|
RUN apt-get update \ |
|
|
&& apt-get install -y --no-install-recommends \ |
|
|
wget gnupg ca-certificates \ |
|
|
libatk1.0-0 libatk-bridge2.0-0 libcups2 libdbus-1-3 \ |
|
|
libxkbcommon0 libxdamage1 libxrandr2 libgbm1 libasound2 libpangocairo-1.0-0 \ |
|
|
libnss3 libx11-xcb1 libxcomposite1 libxcursor1 libxfixes3 libxrender1 \ |
|
|
libxi6 libxtst6 libglib2.0-0 libgtk-3-0 \ |
|
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
|
|
|
RUN pip install playwright \ |
|
|
&& playwright install \ |
|
|
&& playwright install-deps |
|
|
|
|
|
|
|
|
COPY requirements.txt /app/requirements.txt |
|
|
RUN pip install -r /app/requirements.txt |
|
|
|
|
|
|
|
|
COPY . /app |
|
|
WORKDIR /app |
|
|
|
|
|
EXPOSE 7860 |
|
|
CMD ["python", "app.py"] |