Dockerfile for Python 3.6 Installation

FROM ubuntu:latest

MAINTAINER William "william@yahoo.com"


ENV http_proxy=http://cn-proxy.jp.com:80 \
https_proxy=http://cn-proxy.jp.com:80 \
no_proxy="*.jp1.com,*.jp2.com"

RUN apt-get update -y && \
apt-get install -y vim && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:jonathonf/python-3.6

RUN apt-get update
RUN apt-get install -y build-essential python3.6 python3.6-dev python3-pip python3.6-venv

# update pip
RUN python3.6 -m pip install pip --upgrade && \
python3.6 -m pip install wheel

RUN apt-get update -y && \
apt-get install -y locales

RUN locale-gen en_US.UTF-8

ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

COPY . /opt
WORKDIR /opt
RUN pip3.6 install -r service/requirements.txt

转载于:https://www.cnblogs.com/learn-everyday/p/10754540.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值