updated Dockerfile

This commit is contained in:
Marvin Zhang
2019-06-10 22:27:49 +08:00
parent cf34421dd5
commit affd1490e5

View File

@@ -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"