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 ./qt-patches/ /qt-patches
|
2024-06-10 11:44:06 +03:00
|
|
|
COPY ./scripts/install_qt.sh ./aqt.cfg /
|
|
|
|
# RUN aqt -c /aqt.cfg install-src --outputdir /opt/Qt-src linux ${QT_VERSION}
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2024-06-11 08:33:23 +03:00
|
|
|
RUN apt-get update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
|
|
libxslt1.1 \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2024-03-21 17:38:21 +03:00
|
|
|
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}
|