0
0
mirror of https://github.com/python-LimeReport/containers.git synced 2024-12-24 00:33:05 +03:00
containers/manylinux_2_31/Dockerfile

50 lines
1.5 KiB
Docker
Raw Normal View History

2024-03-17 11:01:42 +03:00
FROM ubuntu:20.04 as env
2024-03-17 11:11:31 +03:00
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential \
zlib1g-dev \
libncurses5-dev \
libgdbm-dev \
libnss3-dev \
libssl-dev \
libreadline-dev \
libffi-dev \
curl \
2024-03-17 11:12:08 +03:00
software-properties-common \
2024-03-17 11:13:24 +03:00
git \
2024-03-21 17:38:21 +03:00
liblzma-dev \
libbz2-dev \
2024-03-17 11:11:31 +03:00
&& rm -rf /var/lib/apt/lists/*
2024-03-21 17:38:21 +03:00
ARG PYTHON_VERSION=3.9
2024-03-17 15:34:36 +03:00
COPY ./scripts/install_python.sh /
2024-03-17 11:01:42 +03:00
RUN /install_python.sh && rm -f /install_python.sh
2024-03-21 17:38:21 +03:00
2024-06-10 10:46:52 +03:00
ARG AQTINSTALL_VERSION=3.1.15
2024-03-21 17:38:21 +03:00
RUN python3 -m pip install aqtinstall==${AQTINSTALL_VERSION}
2024-03-17 11:01:42 +03:00
ENV PATH=/root/.local/bin:$PATH
2024-03-21 17:38:21 +03:00
ARG QT_VERSION=6.4.2
ENV QT_VERSION=${QT_VERSION}
2024-03-21 18:30:20 +03:00
2024-03-21 17:38:21 +03:00
COPY ./scripts/install_qt.sh ./aqt.cfg /
2024-03-21 18:30:20 +03:00
RUN aqt -c /aqt.cfg install-src --outputdir /opt/Qt-src linux ${QT_VERSION}
2024-03-21 17:38:21 +03:00
COPY ./qt-patches/ /qt-patches
2024-03-21 18:30:20 +03:00
RUN cd /opt/Qt-src/${QT_VERSION}/Src && /qt-patches/apply-patches.sh
2024-03-17 11:01:42 +03:00
2024-06-10 11:42:16 +03:00
RUN /install_qt.sh && rm -f /install_qt.sh
2024-06-10 10:46:52 +03:00
2024-03-21 17:38:21 +03:00
# TODO
# 1. fixes "test -x /opt/python/cp39-cp39/bin/python"
# 2. fixes UTILITY_PYTHON = "/opt/python/cp38-cp38/bin/python"
RUN mkdir /opt/python \
&& ln -s /usr/local /opt/python/cp39-cp39 \
&& ln -s /usr/local /opt/python/cp38-cp38 \
&& ln -s /usr/local/bin/python3 /usr/local/bin/python \
&& ln -s /usr/local/bin/pip3 /usr/local/bin/pip
ENV PATH="/opt/Qt/${QT_VERSION}/bin:$PATH"
ENV LD_LIBRARY_PATH="/opt/Qt/${QT_VERSION}/lib"
2024-03-17 11:01:42 +03:00
ENV PYTHON_VERSION=${PYTHON_VERSION}