Spaces:
Sleeping
Sleeping
File size: 766 Bytes
bb39ebb a0c18f1 df577d6 cf601ce c124de1 1044fc5 a0c18f1 84abaca e116349 df577d6 e116349 1044fc5 84abaca a0c18f1 e116349 df577d6 a0c18f1 c94202e df577d6 |
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 |
FROM python:3.12.12
WORKDIR /app
ENV PYTHONUNBUFFERED=1
ENV PORT=7860
ENV LANG=zh_CN.UTF-8
ENV LC_ALL=zh_CN.UTF-8
ENV TZ=Asia/Shanghai
RUN apt-get update -y \
&& apt-get install -y \
xvfb locales tzdata \
libnss3 libgtk-3-0 libx11-xcb1 libxcomposite1 libxdamage1 libxfixes3 \
libxrandr2 libgbm1 libxkbcommon0 libasound2 libpangocairo-1.0-0 \
libcairo2 libatk1.0-0 libatk-bridge2.0-0 libpango-1.0-0 libdrm2 \
libdbus-1-3 libcups2 \
&& localedef -i zh_CN -f UTF-8 zh_CN.UTF-8 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt
RUN python -m camoufox fetch
COPY . .
RUN chmod +x /app/startup.sh
EXPOSE 7860
CMD ["/app/startup.sh"]
|