-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
109 lines (104 loc) · 2.65 KB
/
Dockerfile
File metadata and controls
109 lines (104 loc) · 2.65 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
99
100
101
102
103
104
105
106
107
108
109
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-selkies:ubuntunoble
ARG BUILD_DATE
ARG VERSION
ARG APP_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="aptalca"
ENV \
DEBIAN_FRONTEND="noninteractive" \
HOME=/config \
TITLE="nomacs"
RUN \
echo "**** add icon ****" && \
curl -o \
/usr/share/selkies/www/icon.png \
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/nomacs-logo.png && \
echo "**** install build dependencies ****" && \
apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
cdbs \
cmake \
debhelper \
git \
lcov \
libexiv2-dev \
libgtest-dev \
libheif-dev \
libopencv-dev \
libqt6svg6-dev \
libquazip1-qt6-dev \
libraw-dev \
libtiff-dev \
libwebp-dev \
libxkbcommon-dev \
libzip-dev \
qmake6 \
qt6-declarative-dev-tools \
qt6-svg-dev \
qt6-tools-dev && \
echo "**** install runtime dependencies ****" && \
apt-get install -y --no-install-recommends \
kimageformat-plugins \
libexiv2-27 \
libheif1 \
libopencv-core406t64 \
libopencv-imgproc406t64 \
libquazip1-qt6-1t64 \
libqt6concurrent6t64 \
libqt6printsupport6t64 \
libqt6svg6 \
libraw23t64 \
qt6-image-formats-plugins && \
echo "**** compile nomacs ****" && \
if [ -z "${APP_VERSION}" ]; then \
APP_VERSION=$(curl -sX GET https://api.github.com/repos/nomacs/nomacs/commits/master | jq -r '. | .sha' | cut -c1-8); \
fi && \
mkdir -p /tmp/nomacs && \
git clone --recurse-submodules https://github.com/nomacs/nomacs.git /tmp/nomacs && \
cd /tmp/nomacs && \
git checkout "${APP_VERSION}" && \
mkdir -p /tmp/nomacs/build && \
cd /tmp/nomacs/build && \
cmake \
-DENABLE_OPENCV=ON \
-DENABLE_RAW=ON \
-DENABLE_TIFF=ON \
-DENABLE_QUAZIP=ON \
-DENABLE_PLUGINS=ON \
../ImageLounge/. && \
make && \
make install && \
ldconfig && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** clean up ****" && \
apt-get purge --auto-remove -y \
build-essential \
cdbs \
cmake \
debhelper \
git \
lcov \
libexiv2-dev \
libgtest-dev \
libheif-dev \
libopencv-dev \
libqt6svg6-dev \
libquazip1-qt6-dev \
libquazip5-dev \
libraw-dev \
libtiff-dev \
libwebp-dev \
libxkbcommon-dev \
libzip-dev \
qmake6 \
qt6-declarative-dev-tools \
qt6-svg-dev \
qt6-tools-dev && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# add local files
COPY root/ /