- 新增 Dockerfile 用于构建和运行项目 - 更新 index.html 文件,替换静态资源链接 - 将 requirements.txt 文件移至项目根目录- 移除 alibabacloud_sample 依赖项 - 添加 setuptools依赖项
7 lines
185 B
Plaintext
7 lines
185 B
Plaintext
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"] |