mirror of
https://github.com/python-LimeReport/devcontainer.git
synced 2024-12-23 14:43:00 +03:00
Create Dockerfile
This commit is contained in:
commit
7c17fb9efc
43
Dockerfile
Normal file
43
Dockerfile
Normal file
@ -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'
|
Loading…
Reference in New Issue
Block a user