-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
66 lines (58 loc) · 1.65 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-kasmvnc:ubuntujammy
# set version label
ARG BUILD_DATE
ARG VERSION
ARG CALIBRE_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="fletchto99"
ENV \
CUSTOM_PORT="6080" \
HOME="/config" \
TITLE="Nicotine" \
LISTENING_PORT="2234"
RUN \
echo "**** install runtime packages ****" && \
apt-get update && \
apt-get install -y --no-install-recommends \
dbus \
fcitx-rime \
fonts-wqy-microhei \
libnss3 \
libopengl0 \
libqpdf28 \
libxkbcommon-x11-0 \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-randr0 \
libxcb-render-util0 \
libxcb-xinerama0 \
poppler-utils \
python3 \
python3-xdg \
software-properties-common \
ttf-wqy-zenhei \
wget \
xz-utils && \
apt-get install -y \
speech-dispatcher && \
apt-get install unzip
RUN \
echo "**** install nicotine ****" && \
wget "https://github.com/nicotine-plus/nicotine-plus/releases/latest/download/debian-package.zip" && \
unzip debian-package.zip -d nicotine_unzip && \
chmod +x nicotine_unzip/*.deb
RUN apt-get install -y ./nicotine_unzip/*.deb < /dev/null
RUN \
dbus-uuidgen > /etc/machine-id && \
sed -i 's|</applications>| <application title="nicotine plus" type="normal">\n <maximized>yes</maximized>\n </application>\n</applications>|' /etc/xdg/openbox/rc.xml && \
echo "**** cleanup ****" && \
apt-get clean && \
rm -rf nicotine_unzip \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# add local files
COPY root/ /