web-scraper-new / Dockerfile
service-internal's picture
Upload 3 files
a8febb3 verified
raw
history blame
660 Bytes
FROM python:3.10-slim
# Install dependencies
RUN apt-get update && apt-get install -y wget curl gnupg unzip libglib2.0-0 libnss3 libgconf-2-4 libfontconfig1 libxss1 libasound2 libxtst6 libx11-xcb1 libxcomposite1 libxcursor1 libxdamage1 libxrandr2 libxext6 libxfixes3 libx11-6 libxcb1 libxinerama1 libpango-1.0-0 libcairo2 libatk-bridge2.0-0 libgtk-3-0
# Copy files
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Install Playwright dependencies
RUN pip install playwright && playwright install chromium
# Copy your app code
COPY . /app
WORKDIR /app
# Run app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]