Vibow-AI / Dockerfile
Vibow's picture
Create Dockerfile
91cca00 verified
raw
history blame contribute delete
800 Bytes
FROM python:3.10
# Install system dependencies for Playwright
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/*
# Install Playwright + browsers
RUN pip install playwright \
&& playwright install \
&& playwright install-deps
# Install Python dependencies
COPY requirements.txt /app/requirements.txt
RUN pip install -r /app/requirements.txt
# Copy application
COPY . /app
WORKDIR /app
EXPOSE 7860
CMD ["python", "app.py"]