ehhhh / Dockerfile
StarrySkyWorld's picture
fix: 修正Dockerfile中的路径和启动命令
df577d6
raw
history blame contribute delete
766 Bytes
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"]