build(docker): 添加 Dockerfile并更新项目结构
- 新增 Dockerfile 用于构建和运行项目 - 更新 index.html 文件,替换静态资源链接 - 将 requirements.txt 文件移至项目根目录- 移除 alibabacloud_sample 依赖项 - 添加 setuptools依赖项
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
FROM python:latest
|
||||
WORKDIR /app
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
RUN python setup.py install
|
||||
COPY . /app
|
||||
EXPOSE 5555
|
||||
CMD ["python", "/app/alibabacloud_sample/main.py"]
|
||||
Reference in New Issue
Block a user