Spaces:
Running
Running
FROM python:3.10 | |
ENV PIP_ROOT_USER_ACTION=ignore \ | |
TZ=Asia/Shanghai | |
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | |
WORKDIR /app | |
COPY . . | |
RUN pip install --no-cache-dir --upgrade pip && \ | |
pip install --no-cache-dir -r requirements.txt | |
CMD ["sh", "-c", "HF_HOME=/tmp/cache python m3_server.py"] | |