This commit is contained in:
ls
2024-10-21 11:21:15 +08:00
parent 2fef1667d5
commit 90054a0cf0
25 changed files with 1218 additions and 223 deletions

View File

@@ -12,5 +12,10 @@ RUN pip install --no-cache-dir -r requirements.txt
# 设置环境变量
ENV FLASK_APP=main.py
ENV PYTHONUNBUFFERED=1
EXPOSE 5000
# 启动 Flask 应用
CMD ["flask", "run", "--host=0.0.0.0"]
#CMD ["gunicorn", "--bind", "0.0.0.0:5000", "main:app"]

1
scripts/build.sh Normal file
View File

@@ -0,0 +1 @@
docker build --platform linux/amd64 -t registry.cn-shanghai.aliyuncs.com/physical/physical-crawler --push .

View File

@@ -4,3 +4,4 @@ urllib3
flask
lxml
mysql-connector-python
gunicorn