commit 7c17fb9efc18a1f800f8b01786b743b1bb8c0b83 Author: Maxim Slipenko Date: Mon Jul 17 12:47:59 2023 +0300 Create Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4de3781 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,43 @@ +FROM mcr.microsoft.com/devcontainers/cpp:ubuntu-22.04 + +ARG AQTINSTALL=3.1.6 +ARG QT=6.2.4 +ARG QT_MODULES= +ARG QT_HOST=linux +ARG QT_TARGET=desktop +ARG QT_ARCH= +ARG PYTHON=3.9 + +RUN curl -sfL https://github.com/devcontainers-contrib/nanolayer/releases/download/v0.4.45/nanolayer-x86_64-unknown-linux-gnu.tgz | tar fxvz - -C / && \ + chmod 755 /nanolayer && \ + /nanolayer install \ + apt-get \ + libclang-dev,libgl1-mesa-dev,libxkbcommon-x11-0,libdbus-1-3 && \ + /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}" && \ + rm /nanolayer + + +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 +ENV PYSIDE6_INSTALL_DIR "/home/vscode/pyside-setup/build/qfp-py${PYTHON}-qt${QT}-64bit-release/install" + +RUN /bin/bash -c 'source /etc/profile && \ +aqt install --outputdir /opt/qt ${QT} ${QT_HOST} ${QT_TARGET} ${QT_ARCH} -m ${QT_MODULES} && \ +cd $HOME && \ +git clone -b ${QT} https://code.qt.io/pyside/pyside-setup.git && \ +cd pyside-setup && \ +pip install -r requirements.txt && \ +export MAKEFLAGS="-j$(nproc)" && \ +python setup.py install'