first commit

This commit is contained in:
dekun
2026-05-22 13:06:42 +08:00
commit af5c249cf8
27 changed files with 1741 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
FROM python:3.11-slim
WORKDIR /app
ENV PYTHONUNBUFFERED=1 \
TZ=Asia/Shanghai
RUN apt-get update && apt-get install -y --no-install-recommends tzdata \
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
&& echo $TZ > /etc/timezone \
&& rm -rf /var/lib/apt/lists/*
COPY backend/requirements.txt /app/backend/requirements.txt
RUN pip install --no-cache-dir -r /app/backend/requirements.txt
COPY . /app
RUN mkdir -p /app/data
EXPOSE 8000
CMD ["python", "run.py"]