mirror of
https://github.com/python-LimeReport/containers.git
synced 2024-12-24 00:33:05 +03:00
refactor
This commit is contained in:
parent
2f6032bafb
commit
2501984514
@ -1,9 +1,5 @@
|
|||||||
FROM amd64/almalinux:8 as env
|
FROM amd64/almalinux:8 as env
|
||||||
|
|
||||||
ARG AQTINSTALL_VERSION=3.1.6
|
|
||||||
ARG QT_VERSION=6.4.2
|
|
||||||
ARG PYTHON_VERSION=3.9
|
|
||||||
|
|
||||||
RUN yum -y update \
|
RUN yum -y update \
|
||||||
&& yum -y groupinstall 'Development Tools' \
|
&& yum -y groupinstall 'Development Tools' \
|
||||||
&& yum -y install \
|
&& yum -y install \
|
||||||
@ -17,28 +13,21 @@ RUN yum -y update \
|
|||||||
llvm \
|
llvm \
|
||||||
llvm-devel \
|
llvm-devel \
|
||||||
mesa-libGL-devel \
|
mesa-libGL-devel \
|
||||||
|
pulseaudio-libs-glib2 \
|
||||||
&& dnf --enablerepo=powertools -y install ninja-build \
|
&& dnf --enablerepo=powertools -y install ninja-build \
|
||||||
&& yum clean all \
|
&& yum clean all \
|
||||||
&& rm -rf /var/cache/yum
|
&& rm -rf /var/cache/yum
|
||||||
|
|
||||||
COPY ./scripts/install_python.sh ./scripts/install_pipx.sh ./scripts/install_qt.sh /
|
COPY ./scripts/install_python.sh ./scripts/install_pipx.sh ./scripts/install_qt.sh /
|
||||||
|
ARG PYTHON_VERSION=3.9
|
||||||
RUN /install_python.sh && rm -f /install_python.sh
|
RUN /install_python.sh && rm -f /install_python.sh
|
||||||
RUN /install_pipx.sh && rm -f /install_pipx.sh
|
RUN /install_pipx.sh && rm -f /install_pipx.sh
|
||||||
|
ARG AQTINSTALL_VERSION=3.1.7
|
||||||
RUN pipx install aqtinstall==${AQTINSTALL_VERSION}
|
RUN pipx install aqtinstall==${AQTINSTALL_VERSION}
|
||||||
|
ENV PATH=/root/.local/bin:$PATH
|
||||||
|
ARG QT_VERSION=6.4.2
|
||||||
RUN /install_qt.sh && rm -f /install_qt.sh
|
RUN /install_qt.sh && rm -f /install_qt.sh
|
||||||
|
|
||||||
ENV PATH="/opt/Qt/${QT_VERSION}/gcc_64/bin:$PATH"
|
ENV PATH="/opt/Qt/${QT_VERSION}/gcc_64/bin:$PATH"
|
||||||
|
ENV QT_VERSION=${QT_VERSION}
|
||||||
RUN cd /opt \
|
ENV PYTHON_VERSION=${PYTHON_VERSION}
|
||||||
&& git clone -b ${QT_VERSION} https://code.qt.io/pyside/pyside-setup.git \
|
|
||||||
&& cd pyside-setup \
|
|
||||||
&& pip3 install -r requirements.txt \
|
|
||||||
&& python3 setup.py build --parallel "$(nproc)" --limited-api yes \
|
|
||||||
&& mkdir -p /output \
|
|
||||||
&& export dir_name=qfpa-py${PYTHON_VERSION}-qt${QT_VERSION}-64bit-release \
|
|
||||||
&& tar czvf "/output/$dir_name.tar.gz" -C "./build/$dir_name/install" .
|
|
||||||
|
|
||||||
RUN cd /opt/pyside-setup \
|
|
||||||
&& python3 setup.py build --parallel "$(nproc)" bdist_wheel --limited-api yes
|
|
||||||
|
|
||||||
RUN cp /opt/pyside-setup/dist/* /output
|
|
Loading…
Reference in New Issue
Block a user