feat: 添加 Docker 容器化部署和 CI/CD 管道
Some checks failed
continuous-integration/drone/push Build was killed
Some checks failed
continuous-integration/drone/push Build was killed
- 创建 Flask 应用程序,展示容器主机名和学生ID环境变量 - 配置 DockerFile 为 Python 环境并安装依赖 - 设置 Drone CI 管道自动构建并推送 Docker 映像到私有注册表
This commit is contained in:
5
Dockerfile
Normal file
5
Dockerfile
Normal file
@@ -0,0 +1,5 @@
|
||||
FROM python:3.9-alpine
|
||||
RUN pip install flask
|
||||
COPY app.py /app.py
|
||||
CMD ["python", "/app.py"]
|
||||
|
||||
Reference in New Issue
Block a user