mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-26 17:49:15 +01:00
fixed deploy/run task issue
This commit is contained in:
26
Dockerfile-task
Normal file
26
Dockerfile-task
Normal file
@@ -0,0 +1,26 @@
|
||||
# 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
|
||||
|
||||
# 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
|
||||
Reference in New Issue
Block a user