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:
12
Dockerfile
12
Dockerfile
@@ -1,9 +1,5 @@
|
||||
# images
|
||||
FROM python:3.6
|
||||
|
||||
#用ubuntu国内源替换默认源
|
||||
RUN rm /etc/apt/sources.list
|
||||
COPY sources.list /etc/apt/sources.list
|
||||
FROM ubuntu:latest
|
||||
|
||||
# source files
|
||||
ADD . /opt/crawlab
|
||||
@@ -28,9 +24,9 @@ RUN apt-get install -y mongodb-org
|
||||
RUN mongod >> /var/log/mongod.log 2>&1 &
|
||||
|
||||
# install python
|
||||
#RUN apt-get install -y python python3 python3-pip
|
||||
#RUN ln -s /usr/bin/pip3 /usr/local/bin/pip
|
||||
#RUN ln -s /usr/bin/python3 /usr/local/bin/python
|
||||
RUN apt-get install -y python python3 python3-pip
|
||||
RUN ln -s /usr/bin/pip3 /usr/local/bin/pip
|
||||
RUN ln -s /usr/bin/python3 /usr/local/bin/python
|
||||
#RUN git clone git://github.com/yyuu/pyenv.git ~/.pyenv
|
||||
#ENV PYENV_ROOT "$HOME/.pyenv"
|
||||
#ENV PATH "$PYENV_ROOT/bin:$PATH"
|
||||
|
||||
Reference in New Issue
Block a user