16 lines
299 B
Docker
16 lines
299 B
Docker
FROM python:3.11-slim
|
|
|
|
ENV TZ=Asia/Shanghai
|
|
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 bot/ ./bot/
|
|
|
|
RUN mkdir -p /app/data /app/logs
|
|
|
|
CMD ["python", "-m", "bot.main"]
|