Commit 87aee4e1 authored by caiyanming's avatar caiyanming

update python base on ubuntu 16.04

Change-Id: I174d644ab830cbd894f5e82dd61aaccaa1e1c3ae
parent bdc7d581
......@@ -4,7 +4,13 @@
# PLEASE DO NOT EDIT IT DIRECTLY.
#
FROM buildpack-deps:stretch
FROM ubuntu:16.04
MAINTAINER xt
COPY sources.list /etc/apt/sources.list
COPY python-3.7.0.tar.xz ./python.tar.xz
COPY python-3.7.0.tar.xz.asc ./python.tar.xz.asc
COPY get-pip.py ./get-pip.py
# ensure local python is preferred over distribution python
ENV PATH /usr/local/bin:$PATH
......@@ -15,6 +21,9 @@ ENV LANG C.UTF-8
# extra dependencies (over what buildpack-deps already includes)
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libssl-dev \
libffi-dev \
tk-dev \
uuid-dev \
&& rm -rf /var/lib/apt/lists/*
......@@ -24,11 +33,7 @@ ENV PYTHON_VERSION 3.7.0
RUN set -ex \
\
&& wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \
&& wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \
&& export GNUPGHOME="$(mktemp -d)" \
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEY" \
&& gpg --batch --verify python.tar.xz.asc python.tar.xz \
&& { command -v gpgconf > /dev/null && gpgconf --kill all || :; } \
&& rm -rf "$GNUPGHOME" python.tar.xz.asc \
&& mkdir -p /usr/src/python \
......@@ -69,9 +74,6 @@ RUN cd /usr/local/bin \
ENV PYTHON_PIP_VERSION 18.0
RUN set -ex; \
\
wget -O get-pip.py 'https://bootstrap.pypa.io/get-pip.py'; \
\
python get-pip.py \
--disable-pip-version-check \
--no-cache-dir \
......
This diff is collapsed.
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEDZbfTUEQ5cQ/v7F/LTR+pqplQh0FAlszKYIACgkQLTR+pqpl
Qh2MEw/7BBTJ5SxOYi98JPw+6p0+C3runRsJ0+QKCRkTYHNZLZBznClFSWJiCKv1
DcFKaJshbdnuveOdsuo+sfzQqk/n8hxJBdzJyB7nnYSAlzNW27Z9CtzCq1666jzI
owiY+ehg3DrdunEzCxle/wieMii7VytCwFb4XeKwb3BY4Q1Vpir7dDdaoJPB5VIT
hBuPHbL8sXCAi9k2sQptfvtO0zzmRhEOzn0UClAxHdD75zMjJoU3BgPjxqNFTgio
pjx+FcSVKmkADxexAhVveR37nXHgO1YclqZIiJR01zflGM0B/en1J1vW0YKDoN+C
c8uz0U6hIvcPuwi74KQC+gElBtTKcMPWkh0hctzWpoh5hmZZdXi5SU8AKOMf5EEK
JXYuTgN6+RP+K5XmXw3bw/87GMNPswW10irfcXsll+fbUvt10JwTtLl8Sx9CLnA0
xBJO4+09dJpi8KHzYXHeo7TVww68x9yoFpZYg783etXQYHj0+JnNG7iAanqcj0AN
jNZOh49s1FDC/wzZFTlKlf8UgVAbTIQ42d2MihjkqrTPL+/aSwONOG7utvHnAWol
/Ml393ysZWbTa9daiSwrn2F/gDvXmzpBUSvghLMTEuuijG9TOPCVhvE/6dn2Iftl
pKmcdZw0POLpffzo8hOuNBcGge/4QwHW3URH3a81gNjwC+yAVXY=
=p/oU
-----END PGP SIGNATURE-----
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment