| 1 |
# Use an official Python runtime as a parent image |
| 2 |
FROM ubuntu:focal |
| 3 |
|
| 4 |
ENV DEBIAN_FRONTEND "noninteractive" |
| 5 |
RUN apt-get update -qq && \ |
| 6 |
apt-get install -y -qq --no-install-recommends \ |
| 7 |
gnupg-agent \ |
| 8 |
software-properties-common \ |
| 9 |
wget \ |
| 10 |
apt-utils |
| 11 |
|
| 12 |
# Qt |
| 13 |
RUN add-apt-repository --yes ppa:beineri/opt-qt-5.15.4-focal |
| 14 |
|
| 15 |
# Clang |
| 16 |
RUN echo "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-17 main" > /etc/apt/sources.list.d/clang.list |
| 17 |
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key| apt-key add - |
| 18 |
ENV CC clang-17 |
| 19 |
ENV CXX clang++-17 |
| 20 |
|
| 21 |
RUN apt-get update -qq && \ |
| 22 |
apt-get install -y --no-install-recommends \ |
| 23 |
make \ |
| 24 |
coreutils \ |
| 25 |
clang-17 \ |
| 26 |
curl \ |
| 27 |
git \ |
| 28 |
libgstreamer-plugins-bad1.0-dev \ |
| 29 |
libgstreamer-plugins-base1.0-dev \ |
| 30 |
libgstreamer1.0-dev \ |
| 31 |
gstreamer1.0-plugins-bad \ |
| 32 |
gstreamer1.0-plugins-base \ |
| 33 |
gstreamer1.0-plugins-base-apps \ |
| 34 |
gstreamer1.0-plugins-good \ |
| 35 |
gstreamer1.0-plugins-ugly \ |
| 36 |
gstreamer1.0-pulseaudio \ |
| 37 |
gstreamer1.0-tools \ |
| 38 |
gtk-update-icon-cache \ |
| 39 |
libtag1-dev \ |
| 40 |
pkg-config \ |
| 41 |
qttools5-dev-tools \ |
| 42 |
qt515base \ |
| 43 |
qt515svg \ |
| 44 |
qt515tools \ |
| 45 |
qt515translations \ |
| 46 |
qt515x11extras \ |
| 47 |
qt515xmlpatterns \ |
| 48 |
sudo \ |
| 49 |
zlib1g-dev \ |
| 50 |
libgl1-mesa-dev |
| 51 |
|
| 52 |
RUN ln -sf /opt/qt515 /opt/qt |
| 53 |
|
| 54 |
# Needed for linuxdeploy images |
| 55 |
RUN apt-get install -y -qq --no-install-recommends \ |
| 56 |
ca-certificates \ |
| 57 |
file \ |
| 58 |
libfuse2 \ |
| 59 |
openssl \ |
| 60 |
wget |
| 61 |
|
| 62 |
# CMake |
| 63 |
ENV CMAKE_VERSION_NR "3.26.5" |
| 64 |
ENV CMAKE_VERSION "${CMAKE_VERSION_NR}-linux-x86_64" |
| 65 |
RUN wget "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION_NR}/cmake-${CMAKE_VERSION}.tar.gz" |
| 66 |
RUN tar xzf "cmake-${CMAKE_VERSION}.tar.gz" |
| 67 |
RUN cp -r "cmake-${CMAKE_VERSION}/bin" /usr/local |
| 68 |
RUN cp -r "cmake-${CMAKE_VERSION}/doc" /usr/local |
| 69 |
RUN cp -r "cmake-${CMAKE_VERSION}/share" /usr/local |
| 70 |
RUN rm -rf "cmake-*" |
| 71 |
|
| 72 |
# App Image |
| 73 |
RUN wget "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage" |
| 74 |
RUN wget "https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage" |
| 75 |
RUN wget "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" |
| 76 |
RUN mv "linuxdeploy-x86_64.AppImage" "linuxdeploy-plugin-qt-x86_64.AppImage" "appimagetool-x86_64.AppImage" /usr/local/bin/ |
| 77 |
RUN chmod a+x /usr/local/bin/*.AppImage |
| 78 |
|
| 79 |
# Transifex |
| 80 |
RUN mkdir -p /tmp/tx && cd /tmp/tx && curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash |
| 81 |
ENV PATH "/tmp/tx:${PATH}" |
| 82 |
|
| 83 |
#ARG userid=1000 |
| 84 |
#ARG groupid=1000 |
| 85 |
#ARG username=root |
| 86 |
#ARG groupname=root |
| 87 |
|
| 88 |
#RUN groupadd -o -g ${groupid} ${groupname} && \ |
| 89 |
# useradd -o --no-log-init -m -u ${userid} -g ${groupid} ${username} && \ |
| 90 |
# adduser ${username} sudo |
| 91 |
|
| 92 |
# USER ${username} |
| 93 |
|
| 94 |
CMD ["/bin/bash"] |