init: python flask demo

This commit is contained in:
zzy
2026-10-28 22:40:03 +08:00
commit 1b12670f55
3 changed files with 64 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
FROM python:3.12-alpine
ENV PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple \
PIP_TRUSTED_HOST=pypi.tuna.tsinghua.edu.cn
RUN pip install --no-cache-dir flask==3.0.3
WORKDIR /app
COPY app.py .
EXPOSE 5000
CMD ["python", "app.py"]