Kaynağa Gözat

新文件: .dockerignore
新文件: Dockerfile

privacy 3 yıl önce
ebeveyn
işleme
494ab24139
2 değiştirilmiş dosya ile 19 ekleme ve 0 silme
  1. 2 0
      .dockerignore
  2. 17 0
      Dockerfile

+ 2 - 0
.dockerignore

@@ -0,0 +1,2 @@
+Dockerfile
+!projects

+ 17 - 0
Dockerfile

@@ -0,0 +1,17 @@
+# Version: 1.0
+# 基于Debian python3.8 安装运行scrapy scrapyd scrapydweb
+FROM python:3.8
+
+ADD . /workspace
+
+WORKDIR /workspace
+
+RUN pip3 install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple
+RUN pip3 install BeautifulSoup4 setuptools pillow sqlalchemy pymongo logparser -i https://pypi.tuna.tsinghua.edu.cn/simple 
+RUN pip3 install apscheduler scrapy scrapy_redis scrapyd scrapyd-client scrapydweb -i https://pypi.tuna.tsinghua.edu.cn/simple
+
+RUN mkdir /workspace/logs && mkdir /workspace/programdata && mkdir /workspace/dbs
+
+EXPOSE 6800 
+
+ENTRYPOINT ["bash", "/workspace/start.sh"]