Skip to content
Snippets Groups Projects
Unverified Commit b3e13245 authored by Giacomo Caironi's avatar Giacomo Caironi
Browse files

Draft

parents
Branches
No related tags found
No related merge requests found
FROM ubuntu:22.04
# Update apt cache
RUN apt-get update
# Install base dependencies
RUN apt-get install -y python3
RUN apt-get install -y python3-pip
RUN apt-get install -y git
RUN apt-get install -y build-essential
RUN apt-get install -y cppcheck
# Install aqt
RUN python3 -m pip install aqtinstall
# Install QT dependencies
RUN apt-get install -y libxcb-icccm4
RUN apt-get install -y libxcb-image0
RUN apt-get install -y libxcb-keysyms1
RUN apt-get install -y libxcb-render-util0
RUN apt-get install -y libxcb-xinerama0
RUN apt-get install -y libxcb-xkb1
RUN apt-get install -y libxkbcommon-x11-0
RUN apt-get install -y libxcb-randr0
RUN apt-get install -y libegl1
# Install QT
RUN aqt install-qt linux desktop 5.15.2 gcc_64 -m all -O /opt/qt/
# Install Appimage dependencies
RUN apt-get install -y libfuse2
# Install Appimage tools
ADD https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage /usr/local/bin/linuxdeploy
RUN chmod +x /usr/local/bin/linuxdeploy
ADD https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage /usr/local/bin/linuxdeploy-plugin-qt
RUN chmod +x /usr/local/bin/linuxdeploy-plugin-qt
ADD https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage /usr/local/bin/appimagetool
RUN chmod +x /usr/local/bin/appimagetool
# Install MXE requirements
RUN apt-get install -y autoconf
RUN apt-get install -y automake
RUN apt-get install -y autopoint
RUN apt-get install -y bison
RUN apt-get install -y bzip2
RUN apt-get install -y flex
RUN apt-get install -y g++
RUN apt-get install -y g++-multilib
RUN apt-get install -y gettext
RUN apt-get install -y gperf
RUN apt-get install -y intltool
RUN apt-get install -y libc6-dev-i386
RUN apt-get install -y libgdk-pixbuf2.0-dev
RUN apt-get install -y libltdl-dev
RUN apt-get install -y libgl-dev
RUN apt-get install -y libssl-dev
RUN apt-get install -y libtool-bin
RUN apt-get install -y libxml-parser-perl
RUN apt-get install -y lzip
RUN apt-get install -y make
RUN apt-get install -y openssl
RUN apt-get install -y p7zip-full
RUN apt-get install -y patch
RUN apt-get install -y perl
RUN apt-get install -y python3-mako
RUN apt-get install -y python3-pkg-resources
RUN apt-get install -y ruby
RUN apt-get install -y sed
RUN apt-get install -y xz-utils
# Download MXE
RUN git clone https://github.com/mxe/mxe
RUN apt-get install -y wget
RUN apt-get install -y python-is-python3
# Compile MXE
RUN \
--mount=type=cache,target=/mxe/usr/bin\
cd mxe && make MXE_TARGETS=x86_64-w64-mingw32.static qt5
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
\ No newline at end of file
QT Docker Image
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment