1
0
mirror of https://github.com/python-LimeReport/devcontainer.git synced 2024-12-23 14:43:00 +03:00
devcontainer/Dockerfile

51 lines
1.6 KiB
Docker
Raw Normal View History

2023-07-17 12:47:59 +03:00
FROM mcr.microsoft.com/devcontainers/cpp:ubuntu-22.04
ARG AQTINSTALL=3.1.6
2023-07-18 09:40:35 +03:00
ARG QT=6.3.2
2023-07-17 12:47:59 +03:00
ARG QT_MODULES=
ARG QT_HOST=linux
ARG QT_TARGET=desktop
ARG QT_ARCH=
ARG PYTHON=3.9
2023-07-18 09:40:35 +03:00
COPY extra.sh /
RUN . /extra.sh && \
curl -sfL https://github.com/devcontainers-contrib/nanolayer/releases/download/v0.4.45/nanolayer-x86_64-unknown-linux-gnu.tgz | tar fxvz - -C / && \
2023-07-17 12:47:59 +03:00
chmod 755 /nanolayer && \
/nanolayer install \
apt-get \
2023-07-18 09:40:35 +03:00
$(packages_to_install) && \
2023-07-17 12:47:59 +03:00
/nanolayer install \
devcontainer-feature \
ghcr.io/devcontainers/features/python:1 \
--option version="${PYTHON}" && \
/nanolayer install \
devcontainer-feature \
ghcr.io/devcontainers-contrib/features/pipx-package:1 \
--option package="aqtinstall" \
--option version="${AQTINSTALL}" && \
2023-07-18 10:49:19 +03:00
rm /nanolayer && \
switch_gcc_version
2023-07-18 09:40:35 +03:00
2023-07-17 13:04:25 +03:00
RUN /bin/bash -c 'source /etc/profile && \
aqt install --outputdir /opt/qt ${QT} ${QT_HOST} ${QT_TARGET} ${QT_ARCH} -m ${QT_MODULES}'
2023-07-17 12:47:59 +03:00
ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
USER vscode
ENV PATH /opt/qt/${QT}/gcc_64/bin:$PATH
RUN /bin/bash -c 'source /etc/profile && \
cd $HOME && \
git clone -b ${QT} https://code.qt.io/pyside/pyside-setup.git && \
cd pyside-setup && \
pip install -r requirements.txt && \
2023-07-30 09:26:18 +03:00
python setup.py build --parallel $(nproc) bdist_wheel --limited-api yes && \
pip install /home/vscode/pyside-setup/dist/*.whl'
2023-07-18 09:40:35 +03:00
2023-07-30 09:26:18 +03:00
ENV PYSIDE_INSTALL_DIR="/home/vscode/pyside-setup/build/qfpa-py${PYTHON}-qt${QT}-64bit-release/install"
USER root