restructured code

This commit is contained in:
Marvin Zhang
2019-03-06 10:11:07 +08:00
parent de3247269c
commit fc4c98eccf
45 changed files with 153 additions and 7 deletions

View File

@@ -1,26 +0,0 @@
# images
#FROM python:latest
FROM ubuntu:latest
# source files
ADD . /opt/crawlab
# add dns
RUN cat /etc/resolv.conf
# install python
RUN apt-get update
RUN apt-get install -y python3 python3-pip net-tools iputils-ping vim ntp
# soft link
RUN ln -s /usr/bin/pip3 /usr/local/bin/pip
RUN ln -s /usr/bin/python3 /usr/local/bin/python
# install required libraries
RUN pip install -U setuptools
RUN pip install -r /opt/crawlab/requirements.txt
# execute apps
WORKDIR /opt/crawlab
CMD python ./bin/run_worker.py
CMD python app.py