Q58Bot/Dockerfile
2024-09-03 17:25:50 +08:00

16 lines
298 B
Docker

FROM python:3.9-slim
# 设置时区
ENV TZ=Asia/Singapore
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY src /app/src
COPY data /app/data
CMD ["python", "src/main.py"]