mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
updated Dockerfile
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -14,20 +14,12 @@ ENV WORK_DIR /opt/crawlab
|
||||
|
||||
# install pkg
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y curl git net-tools iputils-ping ntp gnupg2 nginx redis python python3 python3-pip \
|
||||
&& apt-get install -y curl git net-tools iputils-ping ntp nginx python3 python3-pip \
|
||||
&& apt-get clean \
|
||||
&& cp $WORK_DIR/crawlab.conf /etc/nginx/conf.d \
|
||||
&& ln -s /usr/bin/pip3 /usr/local/bin/pip \
|
||||
&& ln -s /usr/bin/python3 /usr/local/bin/python
|
||||
|
||||
# install mongodb
|
||||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4 \
|
||||
&& echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.0.list \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y mongodb-org \
|
||||
&& apt-get clean \
|
||||
&& mkdir -p /data/db
|
||||
|
||||
# install nvm
|
||||
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.24.0/install.sh | bash \
|
||||
&& . $NVM_DIR/nvm.sh \
|
||||
|
||||
Reference in New Issue
Block a user