init: python flask demo
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user