summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorshihaoyue <[email protected]>2024-10-11 15:57:42 +0800
committershihaoyue <[email protected]>2024-10-11 15:57:42 +0800
commitb76091e30545adbe54b01d4d4114b6c62e285f63 (patch)
treebf640afce3a5763294ecb1e49c9a89ae28b9eb8c /server
parent93e417654c3f71d2345054c90f9994b3ef8798d6 (diff)
add docker deploy
Diffstat (limited to 'server')
-rw-r--r--server/Dockerfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/server/Dockerfile b/server/Dockerfile
new file mode 100644
index 0000000..de6690e
--- /dev/null
+++ b/server/Dockerfile
@@ -0,0 +1,12 @@
+FROM python:3.10-slim
+
+WORKDIR /app
+
+COPY requirements.txt .
+
+# ʹ�ù���Դ��װ����
+RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
+
+COPY . .
+
+CMD ["python", "app.py"]