-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
98 lines (92 loc) 路 2.55 KB
/
Copy pathDockerfile
File metadata and controls
98 lines (92 loc) 路 2.55 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
FROM ghcr.io/linuxserver/baseimage-ubuntu:jammy
# package versions
ARG YACR_VERSION="10.2.0"
# env variables
ARG DEBIAN_FRONTEND="noninteractive"
ENV APPNAME="YACReaderLibraryServer"
ENV HOME="/config"
LABEL maintainer="xthursdayx"
# install build & runtime packages
RUN \
apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
cmake \
desktop-file-utils \
gcc \
g++ \
git \
qtchooser \
qt6-tools-dev \
qt6-base-dev-tools \
qmake6 \
qmake6-bin \
qt6-base-dev \
qt6-multimedia-dev \
qt6-tools-dev-tools \
libgl-dev \
qt6-l10n-tools \
libqt6opengl6-dev \
libunarr-dev \
qt6-declarative-dev \
libqt6svg6-dev \
libqt6core5compat6-dev \
libbz2-dev \
libglu1-mesa-dev \
liblzma-dev \
libqt6gui6 \
libqt6multimedia6 \
libqt6network6 \
libqt6qml6 \
libqt6quickcontrols2-6 \
qt6-image-formats-plugins \
libqt6sql6 \
libqt6sql6-sqlite \
make \
p7zip-full \
sqlite3 \
libsqlite3-dev \
unzip \
wget \
zlib1g-dev && \
# install unarr libraries
# git clone -b master --single-branch https://github.com/selmf/unarr.git /tmp/unarr && \
# cd /tmp/unarr && \
# mkdir -p build && \
# cd build && \
# cmake -DENABLE_7Z=ON .. && \
# make && \
# make install && \
# fix qtchooser qmake install - https://askubuntu.com/questions/1460242/ubuntu-22-04-with-qt6-qmake-could-not-find-a-qt-installation-of
qtchooser -install qt6 $(which qmake6) && \
export QT ELECT=qt6 && \
# build yacreaderlibraryserver
git clone -b master --single-branch https://github.com/YACReader/yacreader.git /src/git && \
cd /src/git && \
git checkout $YACR_VERSION && \
cd /src/git/YACReaderLibraryServer && \
qtchooser -list-versions && \
qmake6 PREFIX=/app CONFIG+="unarr no_pdf server_standalone" YACReaderLibraryServer.pro && \
qmake6 -v && \
make && \
make install && \
# clean up
cd / && \
apt-get clean && \
apt-get purge -y build-essential cmake g++ gcc git make qmake6 qtchooser unzip wget && \
apt-get -y autoremove && \
apt-get install -y --no-install-recommends \
libqt6core5compat6-dev && \
rm -rf \
/src \
/tmp/* \
/var/cache/apt \
/var/lib/apt/lists/*
# set ENV
ENV LC_ALL="en_US.UTF-8" \
PATH="/app/bin:${PATH}"
# copy files
COPY root/ /
# ports and volumes
EXPOSE 8080
VOLUME ["/config", "/comics"]