PK / Dockerfile
Ourking's picture
Upload 4 files
296e7c5 verified
Raw History Blame Contribute Delete
379 Bytes
FROM python:3.10-slim
# 固定时区(关键两句)
ENV TZ=Asia/Shanghai
RUN apt-get update && apt-get install -y tzdata --no-install-recommends && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p data accu logs && chmod -R 777 data accu logs
EXPOSE 7860
CMD ["python", "app.py"]