api / Dockerfile
Hana Celeste
Update Dockerfile
0345634 verified
raw
history blame contribute delete
468 Bytes
FROM mcr.microsoft.com/playwright/python:v1.40.0-jammy
WORKDIR /app
RUN apt-get update && apt-get install -y \
xvfb \
libgbm-dev \
libnss3 \
libasound2 \
fonts-liberation \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN playwright install chromium
COPY . .
CMD ["sh", "-c", "Xvfb :99 -screen 0 1920x1080x24 & export DISPLAY=:99 && uvicorn main:app --host 0.0.0.0 --port 7860"]