Spaces:
Build error
Build error
FROM python:3.9.19-bookworm | |
MAINTAINER <pjialin admin@pjialin.com> | |
ENV TZ Asia/Shanghai | |
WORKDIR /code | |
COPY requirements.txt . | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends gcc python-dev-is-python3 libglib2.0-0 libsm6 libxext6 libxrender-dev \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& pip install --no-cache-dir -r requirements.txt \ | |
&& apt-get purge -y --auto-remove gcc python-dev-is-python3 | |
COPY . . | |
COPY config.toml.example config.toml | |
EXPOSE 7860 | |
CMD [ "python", "main.py"] | |