Merge pull request #131 from infosiftr/dpkg-divert
Use "dpkg-divert" instead of "purge" to avoid Debian's Python
This commit is contained in:
commit
711a6ff31a
|
@ -1,7 +1,19 @@
|
||||||
FROM buildpack-deps:jessie
|
FROM buildpack-deps:jessie
|
||||||
|
|
||||||
# remove several traces of debian python
|
# divert many traces of Debian Python (so that they are not used by mistake)
|
||||||
RUN apt-get purge -y python.*
|
# https://bugs.debian.org/33263 :(
|
||||||
|
RUN set -ex \
|
||||||
|
&& for bits in \
|
||||||
|
# /etc/python* \
|
||||||
|
/usr/bin/*2to3* \
|
||||||
|
/usr/bin/*python* \
|
||||||
|
/usr/bin/pdb* \
|
||||||
|
/usr/bin/py* \
|
||||||
|
# /usr/lib/python* \
|
||||||
|
# /usr/share/python \
|
||||||
|
; do \
|
||||||
|
dpkg-divert --rename "$bits"; \
|
||||||
|
done
|
||||||
|
|
||||||
# http://bugs.python.org/issue19846
|
# http://bugs.python.org/issue19846
|
||||||
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
FROM debian:jessie
|
FROM debian:jessie
|
||||||
|
|
||||||
# remove several traces of debian python
|
|
||||||
RUN apt-get purge -y python.*
|
|
||||||
|
|
||||||
# http://bugs.python.org/issue19846
|
# http://bugs.python.org/issue19846
|
||||||
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
||||||
ENV LANG C.UTF-8
|
ENV LANG C.UTF-8
|
||||||
|
|
|
@ -1,7 +1,19 @@
|
||||||
FROM buildpack-deps:wheezy
|
FROM buildpack-deps:wheezy
|
||||||
|
|
||||||
# remove several traces of debian python
|
# divert many traces of Debian Python (so that they are not used by mistake)
|
||||||
RUN apt-get purge -y python.*
|
# https://bugs.debian.org/33263 :(
|
||||||
|
RUN set -ex \
|
||||||
|
&& for bits in \
|
||||||
|
# /etc/python* \
|
||||||
|
/usr/bin/*2to3* \
|
||||||
|
/usr/bin/*python* \
|
||||||
|
/usr/bin/pdb* \
|
||||||
|
/usr/bin/py* \
|
||||||
|
# /usr/lib/python* \
|
||||||
|
# /usr/share/python \
|
||||||
|
; do \
|
||||||
|
dpkg-divert --rename "$bits"; \
|
||||||
|
done
|
||||||
|
|
||||||
# http://bugs.python.org/issue19846
|
# http://bugs.python.org/issue19846
|
||||||
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
||||||
|
|
|
@ -1,7 +1,19 @@
|
||||||
FROM buildpack-deps:jessie
|
FROM buildpack-deps:jessie
|
||||||
|
|
||||||
# remove several traces of debian python
|
# divert many traces of Debian Python (so that they are not used by mistake)
|
||||||
RUN apt-get purge -y python.*
|
# https://bugs.debian.org/33263 :(
|
||||||
|
RUN set -ex \
|
||||||
|
&& for bits in \
|
||||||
|
# /etc/python* \
|
||||||
|
/usr/bin/*2to3* \
|
||||||
|
/usr/bin/*python* \
|
||||||
|
/usr/bin/pdb* \
|
||||||
|
/usr/bin/py* \
|
||||||
|
# /usr/lib/python* \
|
||||||
|
# /usr/share/python \
|
||||||
|
; do \
|
||||||
|
dpkg-divert --rename "$bits"; \
|
||||||
|
done
|
||||||
|
|
||||||
# http://bugs.python.org/issue19846
|
# http://bugs.python.org/issue19846
|
||||||
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
FROM debian:jessie
|
FROM debian:jessie
|
||||||
|
|
||||||
# remove several traces of debian python
|
|
||||||
RUN apt-get purge -y python.*
|
|
||||||
|
|
||||||
# http://bugs.python.org/issue19846
|
# http://bugs.python.org/issue19846
|
||||||
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
||||||
ENV LANG C.UTF-8
|
ENV LANG C.UTF-8
|
||||||
|
|
|
@ -1,7 +1,19 @@
|
||||||
FROM buildpack-deps:wheezy
|
FROM buildpack-deps:wheezy
|
||||||
|
|
||||||
# remove several traces of debian python
|
# divert many traces of Debian Python (so that they are not used by mistake)
|
||||||
RUN apt-get purge -y python.*
|
# https://bugs.debian.org/33263 :(
|
||||||
|
RUN set -ex \
|
||||||
|
&& for bits in \
|
||||||
|
# /etc/python* \
|
||||||
|
/usr/bin/*2to3* \
|
||||||
|
/usr/bin/*python* \
|
||||||
|
/usr/bin/pdb* \
|
||||||
|
/usr/bin/py* \
|
||||||
|
# /usr/lib/python* \
|
||||||
|
# /usr/share/python \
|
||||||
|
; do \
|
||||||
|
dpkg-divert --rename "$bits"; \
|
||||||
|
done
|
||||||
|
|
||||||
# http://bugs.python.org/issue19846
|
# http://bugs.python.org/issue19846
|
||||||
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
||||||
|
|
|
@ -1,7 +1,19 @@
|
||||||
FROM buildpack-deps:jessie
|
FROM buildpack-deps:jessie
|
||||||
|
|
||||||
# remove several traces of debian python
|
# divert many traces of Debian Python (so that they are not used by mistake)
|
||||||
RUN apt-get purge -y python.*
|
# https://bugs.debian.org/33263 :(
|
||||||
|
RUN set -ex \
|
||||||
|
&& for bits in \
|
||||||
|
# /etc/python* \
|
||||||
|
/usr/bin/*2to3* \
|
||||||
|
/usr/bin/*python* \
|
||||||
|
/usr/bin/pdb* \
|
||||||
|
/usr/bin/py* \
|
||||||
|
# /usr/lib/python* \
|
||||||
|
# /usr/share/python \
|
||||||
|
; do \
|
||||||
|
dpkg-divert --rename "$bits"; \
|
||||||
|
done
|
||||||
|
|
||||||
# http://bugs.python.org/issue19846
|
# http://bugs.python.org/issue19846
|
||||||
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
FROM debian:jessie
|
FROM debian:jessie
|
||||||
|
|
||||||
# remove several traces of debian python
|
|
||||||
RUN apt-get purge -y python.*
|
|
||||||
|
|
||||||
# http://bugs.python.org/issue19846
|
# http://bugs.python.org/issue19846
|
||||||
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
||||||
ENV LANG C.UTF-8
|
ENV LANG C.UTF-8
|
||||||
|
|
|
@ -1,7 +1,19 @@
|
||||||
FROM buildpack-deps:wheezy
|
FROM buildpack-deps:wheezy
|
||||||
|
|
||||||
# remove several traces of debian python
|
# divert many traces of Debian Python (so that they are not used by mistake)
|
||||||
RUN apt-get purge -y python.*
|
# https://bugs.debian.org/33263 :(
|
||||||
|
RUN set -ex \
|
||||||
|
&& for bits in \
|
||||||
|
# /etc/python* \
|
||||||
|
/usr/bin/*2to3* \
|
||||||
|
/usr/bin/*python* \
|
||||||
|
/usr/bin/pdb* \
|
||||||
|
/usr/bin/py* \
|
||||||
|
# /usr/lib/python* \
|
||||||
|
# /usr/share/python \
|
||||||
|
; do \
|
||||||
|
dpkg-divert --rename "$bits"; \
|
||||||
|
done
|
||||||
|
|
||||||
# http://bugs.python.org/issue19846
|
# http://bugs.python.org/issue19846
|
||||||
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
||||||
|
|
|
@ -1,7 +1,19 @@
|
||||||
FROM buildpack-deps:jessie
|
FROM buildpack-deps:jessie
|
||||||
|
|
||||||
# remove several traces of debian python
|
# divert many traces of Debian Python (so that they are not used by mistake)
|
||||||
RUN apt-get purge -y python.*
|
# https://bugs.debian.org/33263 :(
|
||||||
|
RUN set -ex \
|
||||||
|
&& for bits in \
|
||||||
|
# /etc/python* \
|
||||||
|
/usr/bin/*2to3* \
|
||||||
|
/usr/bin/*python* \
|
||||||
|
/usr/bin/pdb* \
|
||||||
|
/usr/bin/py* \
|
||||||
|
# /usr/lib/python* \
|
||||||
|
# /usr/share/python \
|
||||||
|
; do \
|
||||||
|
dpkg-divert --rename "$bits"; \
|
||||||
|
done
|
||||||
|
|
||||||
# http://bugs.python.org/issue19846
|
# http://bugs.python.org/issue19846
|
||||||
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
FROM debian:jessie
|
FROM debian:jessie
|
||||||
|
|
||||||
# remove several traces of debian python
|
|
||||||
RUN apt-get purge -y python.*
|
|
||||||
|
|
||||||
# http://bugs.python.org/issue19846
|
# http://bugs.python.org/issue19846
|
||||||
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
||||||
ENV LANG C.UTF-8
|
ENV LANG C.UTF-8
|
||||||
|
|
|
@ -1,7 +1,19 @@
|
||||||
FROM buildpack-deps:jessie
|
FROM buildpack-deps:jessie
|
||||||
|
|
||||||
# remove several traces of debian python
|
# divert many traces of Debian Python (so that they are not used by mistake)
|
||||||
RUN apt-get purge -y python.*
|
# https://bugs.debian.org/33263 :(
|
||||||
|
RUN set -ex \
|
||||||
|
&& for bits in \
|
||||||
|
# /etc/python* \
|
||||||
|
/usr/bin/*2to3* \
|
||||||
|
/usr/bin/*python* \
|
||||||
|
/usr/bin/pdb* \
|
||||||
|
/usr/bin/py* \
|
||||||
|
# /usr/lib/python* \
|
||||||
|
# /usr/share/python \
|
||||||
|
; do \
|
||||||
|
dpkg-divert --rename "$bits"; \
|
||||||
|
done
|
||||||
|
|
||||||
# http://bugs.python.org/issue19846
|
# http://bugs.python.org/issue19846
|
||||||
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
FROM debian:jessie
|
FROM debian:jessie
|
||||||
|
|
||||||
# remove several traces of debian python
|
|
||||||
RUN apt-get purge -y python.*
|
|
||||||
|
|
||||||
# http://bugs.python.org/issue19846
|
# http://bugs.python.org/issue19846
|
||||||
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
|
||||||
ENV LANG C.UTF-8
|
ENV LANG C.UTF-8
|
||||||
|
|
Loading…
Reference in New Issue