-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (31 loc) · 1.49 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM archlinux:base-devel
LABEL org.opencontainers.image.authors="[email protected]"
RUN pacman --noconfirm -Syu gperf help2man bison texinfo flex gawk git unzip \
cmake python3 wget tar gdb qtcreator
RUN useradd --create-home user
ENV HOME /home/user
ENV USER user
ENV TERM xterm
WORKDIR /home/user
RUN su user -c "git clone --recurse-submodules https://github.com/Rain92/kobo-qt-setup-scripts"
RUN su user -c "git clone --recurse-submodules https://github.com/Rain92/UltimateMangaReader"
RUN su user -c "git clone --recurse-submodules https://github.com/Rain92/qt5-kobo-platform-plugin"
WORKDIR /home/user/kobo-qt-setup-scripts
RUN su user -c ./install_toolchain.sh
ENV PATH="/home/${USER}/x-tools/arm-kobo-linux-gnueabihf/bin:${PATH}"
RUN su user -c ./install_libs.sh
RUN su user -c ./install_gdb.sh
RUN su user -c "./get_qt.sh kobo"
RUN su user -c "./get_qt.sh desktop"
RUN su user -c "./build_qt.sh kobo config make install"
RUN su user -c "./build_qt.sh desktop config make install"
RUN git clean -ffdx
ADD scribble /home/user/scribble
ADD koboplatformplugin.pro.user /home/user/qt5-kobo-platform-plugin/koboplatformplugin.pro.user
ADD scribble.pro.user /home/user/scribble/scribble.pro.user
ADD UltimateMangaReader.pro.user /home/user/UltimateMangaReader/UltimateMangaReader.pro.user
ADD QtProject /home/user/.config/QtProject
ADD QtProject.conf /home/user/.config/QtProject.conf
WORKDIR /home/user
ADD launch.sh /launch.sh
ENTRYPOINT ["/launch.sh"]