Spaces:
Runtime error
Runtime error
File size: 1,229 Bytes
56bbb42 f6b8516 487af45 4920f33 1a886ae 4920f33 c0d30c0 ed83fd3 487af45 4920f33 c0d30c0 487af45 fee46ed 4920f33 58f354f 4920f33 58f354f a21adc7 56bbb42 f6b8516 161aa5e f6b8516 ed83fd3 | 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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | FROM python:3.10
USER root
RUN apt-get update
RUN apt-get install -y libnss3
RUN apt-get install -y libnspr4
RUN apt-get install -y libdbus-1-3
RUN apt-get install -y libatk1.0-0
RUN apt-get install -y libatk-bridge2.0-0
RUN apt-get install -y libcups2
RUN apt-get install -y libdrm2
RUN apt-get install -y libxkbcommon0
RUN apt-get install -y libatspi2.0-0
RUN apt-get install -y libxcomposite1
RUN apt-get install -y libxdamage1
RUN apt-get install -y libxfixes3
RUN apt-get install -y libxrandr2
RUN apt-get install -y libgbm1
RUN apt-get install -y libasound2
RUN apt-get install -y libx11-xcb1
RUN apt-get install -y libxcursor1
RUN apt-get install -y libgtk-3-0
RUN apt-get install -y libgdk-pixbuf2.0-0
RUN rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user
ENV HOME=/home/user
ENV PATH=/home/user/.local/bin:$PATH
USER user
WORKDIR $HOME/app
RUN pip install --no-cache-dir pillow
RUN pip install --no-cache-dir fastapi
RUN pip install --no-cache-dir uvicorn
RUN pip install --no-cache-dir requests
RUN pip install --no-cache-dir playwright
RUN pip install --no-cache-dir beautifulsoup4
RUN playwright install
COPY --chown=user . $HOME/app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |