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

35 lines
974 B
Docker
Raw Normal View History

2024-03-17 11:01:42 +03:00
FROM ubuntu:20.04 as env
ARG PYTHON_VERSION=3.9
ARG AQTINSTALL_VERSION=3.1.6
ARG QT_VERSION=6.4.2
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-17 11:11:31 +03:00
&& rm -rf /var/lib/apt/lists/*
2024-03-17 11:01:42 +03:00
COPY ./scripts/install_python.sh ./scripts/install_pipx.sh ./scripts/install_qt.sh /
RUN /install_python.sh && rm -f /install_python.sh
RUN /install_pipx.sh && rm -f /install_pipx.sh
RUN pipx install aqtinstall==${AQTINSTALL_VERSION}
ENV PATH=/root/.local/bin:$PATH
RUN /install_qt.sh && rm -f /install_qt.sh
ENV PATH="/opt/Qt/${QT_VERSION}/gcc_64/bin:$PATH"
2024-03-17 11:04:37 +03:00
ENV LD_LIBRARY_PATH="/opt/Qt/${QT_VERSION}/gcc_64/lib"
2024-03-17 11:01:42 +03:00
ENV QT_VERSION=${QT_VERSION}
ENV PYTHON_VERSION=${PYTHON_VERSION}