- Ubuntu 17.10 → 18.04. - Python 3.6.3 → 3.6.6. - Use `DEBIAN_FRONTEND=noninteractive` to prevent prompts during installation. - Install `tzdata` in the base image as it's required by subimages. - Correctly set maintainer in Dockerfile.
36 lines
1.1 KiB
Docker
36 lines
1.1 KiB
Docker
FROM pillar_base
|
|
LABEL maintainer="Sybren A. Stüvel <sybren@blender.studio>"
|
|
|
|
RUN sed -i 's/^# deb-src/deb-src/' /etc/apt/sources.list && \
|
|
apt-get update && \
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -qy \
|
|
build-essential \
|
|
apache2-dev \
|
|
checkinstall \
|
|
curl
|
|
|
|
RUN apt-get build-dep -y python3.6
|
|
|
|
ADD Python-3.6.6.tar.xz.md5 /Python-3.6.6.tar.xz.md5
|
|
|
|
# Install Python sources
|
|
RUN curl -O https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tar.xz && \
|
|
md5sum -c Python-3.6.6.tar.xz.md5 && \
|
|
tar xf Python-3.6.6.tar.xz && \
|
|
rm -v Python-3.6.6.tar.xz
|
|
|
|
# Install mod-wsgi sources
|
|
RUN mkdir -p /dpkg && cd /dpkg && apt-get source libapache2-mod-wsgi-py3
|
|
|
|
# To be able to install Python outside the docker.
|
|
VOLUME /opt/python
|
|
|
|
# To be able to run Python; after building, ldconfig has to be re-run to do this.
|
|
# This makes it easier to use Python right after building (for example to build
|
|
# mod-wsgi for Python 3.6).
|
|
RUN echo /opt/python/lib > /etc/ld.so.conf.d/python.conf
|
|
RUN ldconfig
|
|
ENV PATH=/opt/python/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
|
|
ENV PYTHONSOURCE=/Python-3.6.6
|