Spaces:
Sleeping
Sleeping
File size: 608 Bytes
fac9d94 be20e75 85350a0 be20e75 fac9d94 d73848e ffdfd23 fac9d94 d73848e 85350a0 fac9d94 85350a0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
FROM python:3.10-slim
# Install basic dependencies
RUN apt-get update && apt-get install -y \
wget \
gnupg \
unzip \
curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
# Install Playwright browsers after Python packages are installed
ENV PLAYWRIGHT_BROWSERS_PATH=/tmp/playwright-browsers
RUN playwright install chromium --with-deps
# Verify the installation
RUN playwright --version && ls -la /tmp/playwright-browsers/
COPY . .
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
|