Преглед на файлове

新增数据同步构建配置

dongzhaorui преди 2 години
родител
ревизия
56a46179f0
променени са 1 файла, в които са добавени 16 реда и са изтрити 0 реда
  1. 16 0
      find_source/Dockerfile1

+ 16 - 0
find_source/Dockerfile1

@@ -0,0 +1,16 @@
+# 拉取镜像
+FROM python:3.8.10
+
+# 切换工作目录
+WORKDIR /app
+
+# add files
+COPY . .
+
+# 安装项目依赖
+RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip
+RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
+RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --root-user-action=ignore
+
+# 启动参数
+CMD ["python", "build_sync_data.py"]