-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
68 lines (62 loc) · 1.94 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
67
68
FROM ghcr.io/linuxserver/baseimage-kasmvnc:debianbookworm
# set version label
ARG BUILD_DATE
ARG VERSION
ARG WPSOFFICE_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="thelamer"
# title
ENV TITLE=WPS-Office
RUN \
echo "**** add icon ****" && \
curl -o \
/kclient/public/icon.png \
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/wps-office-icon.png && \
echo "**** install packages ****" && \
apt-get update && \
apt-get install --no-install-recommends -y \
chromium \
chromium-l10n \
libqt5gui5 \
thunar \
tint2 && \
echo "**** install wps-office ****" && \
if [ -z ${WPSOFFICE_VERSION+x} ]; then \
WPSOFFICE_VERSION=$(curl -sL https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=wps-office \
|awk -F'=' '/^pkgver=/ {print $2}'); \
fi && \
curl -o \
/tmp/wps.deb -L \
"https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/${WPSOFFICE_VERSION##*.}/wps-office_${WPSOFFICE_VERSION}.XA_amd64.deb" && \
apt install -y /tmp/wps.deb && \
mkdir /tmp/fonts && \
curl -o \
/tmp/fonts.tar.gz -L \
"https://github.com/BannedPatriot/ttf-wps-fonts/archive/refs/heads/master.tar.gz" && \
tar xf \
/tmp/fonts.tar.gz -C \
/tmp/fonts/ --strip-components=1 && \
cd /tmp/fonts && \
bash install.sh && cd / && \
ln -s \
/usr/lib/x86_64-linux-gnu/libtiff.so.6.0.0 \
/usr/lib/x86_64-linux-gnu/libtiff.so.5 && \
echo "**** openbox tweaks ****" && \
sed -i \
's/NLMC/NLIMC/g' \
/etc/xdg/openbox/rc.xml && \
echo "**** application tweaks ****" && \
sed -i \
's#^Exec=.*#Exec=/usr/local/bin/wrapped-chromium#g' \
/usr/share/applications/chromium.desktop && \
echo "**** cleanup ****" && \
apt-get autoclean && \
rm -rf \
/var/lib/apt/lists/* \
/var/tmp/* \
/tmp/*
# add local files
COPY /root /
# ports and volumes
EXPOSE 3000
VOLUME /config