提交 f9c785ae authored 作者: zw.wang's avatar zw.wang

python3.6-ubuntu16.04

上级 8c0d60d2
FROM ubuntu:16.04 FROM ubuntu:16.04
MAINTAINER wangzhiwen@163.com
ENV LANG C.UTF-8 ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND noninteractive ARG DEBIAN_FRONTEND=noninteractive
RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list \ RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list \
&& apt-get clean \ && apt-get update \
&& apt-get update && apt-get install -y --no-install-recommends apt-utils \
&& apt-get install gcc g++ gdb -y
RUN apt-get install python3 -y \ RUN apt-get install software-properties-common -y \
&& apt-get install python3-pip -y \ && add-apt-repository ppa:deadsnakes/ppa -y \
&& apt-get update \
&& apt-get install python3.6 python3-pip -y \
&& ln -sf /usr/bin/python3.6 /usr/bin/python \
&& ln -sf /usr/bin/pip3 /usr/bin/pip \
&& mkdir -p /root/.pip \ && mkdir -p /root/.pip \
&& echo '[global]\nindex_url = https://pypi.doubanio.com/simple' > /root/.pip/pip.conf \ && echo '[global]\nindex_url = https://pypi.doubanio.com/simple' > /root/.pip/pip.conf \
&& ln -sf /usr/bin/pip3 /usr/bin/pip \
&& pip install --upgrade --no-cache-dir pip && pip install --upgrade --no-cache-dir pip
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论