demo_obsei / Dockerfile
kltn20133118's picture
Update Dockerfile
a0dda64 verified
raw
history blame
686 Bytes
FROM python:3.11-slim
WORKDIR /code
RUN apt-get update && apt-get install -y \
ffmpeg \
libsm6 \
libxext6 \
poppler-utils \
libatk1.0-0 \
libatk-bridge2.0-0 \
libcups2 \
libxcomposite1 \
libxdamage1 \
libatspi2.0-0 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV HOME=/code
ENV XDG_CACHE_HOME=/code/.cache
RUN mkdir -p /code/.cache && chmod -R 777 /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
RUN pip install playwright
RUN playwright install-deps
COPY . .
EXPOSE 9091
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "9091", "--reload"]