build(docker): 添加 Dockerfile并更新项目结构
- 新增 Dockerfile 用于构建和运行项目 - 更新 index.html 文件,替换静态资源链接 - 将 requirements.txt 文件移至项目根目录- 移除 alibabacloud_sample 依赖项 - 添加 setuptools依赖项
This commit is contained in:
parent
7b1910a7a7
commit
c045214969
@ -5,8 +5,8 @@
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vite + Vue + TS</title>
|
||||
<script type="module" crossorigin src="/assets/index-BqD2iBBB.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BtAwStV2.css">
|
||||
<script type="module" crossorigin src="/assets/index-Cl8UF6l9.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-DnCVOfYc.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
7
dockerfile
Normal file
7
dockerfile
Normal file
@ -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"]
|
||||
@ -1,7 +1,6 @@
|
||||
alibabacloud_credentials==1.0.2
|
||||
alibabacloud_darabonba_stream==0.0.2
|
||||
alibabacloud_ocr_api20210707==3.1.3
|
||||
alibabacloud_sample>=1.0.0
|
||||
alibabacloud_tea_console==0.0.1
|
||||
alibabacloud_tea_openapi==0.4.1
|
||||
alibabacloud_tea_util==0.3.13
|
||||
@ -9,3 +8,4 @@ Flask==3.1.1
|
||||
flask_cors==6.0.1
|
||||
python_dateutil==2.9.0.post0
|
||||
Werkzeug==3.1.3
|
||||
setuptools
|
||||
Loading…
Reference in New Issue
Block a user