From a7ddfcde2adecef03acba737373ec94e4a5179ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E9=9B=A8?= Date: Sat, 6 Dec 2025 16:30:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:dockerfile=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..345ac39 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM docker.m.daocloud.io/python:3.12-slim +WORKDIR /app +COPY . /app +ENV TZ=Asia/Shanghai \ + LANG=C.UTF-8 +RUN rm -rf logs .git .idea .venv && apt-get update && apt-get install -y vim curl sqlite3 && pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ +RUN mkdir -p /app/uploads +EXPOSE 3006 +CMD ["python", "main.py"]