Skip to content

Commit f9cb69f

Browse files
committed
fix onlyoffice install
1 parent 1eee835 commit f9cb69f

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

apps/onlyoffice/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG REPO
2-
FROM ghcr.io/${REPO}:debian-bookworm AS rootfs
2+
FROM ghcr.io/${REPO}:debian-trixie AS rootfs
33
ARG REPO
44

55
# Install packages
@@ -8,13 +8,17 @@ RUN \
88
apt-get update && \
99
apt-get install -y --no-install-recommends \
1010
desktop-file-utils \
11+
gsettings-desktop-schemas \
1112
libgbm1 \
1213
libgl1 \
1314
libnss3 && \
15+
ONLYOFFICE_VERSION=$(curl -sX GET "https://api.github.com/repos/ONLYOFFICE/DesktopEditors/releases/latest" \
16+
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
1417
curl -o \
1518
/tmp/onlyoffice.deb -L \
16-
"https://download.onlyoffice.com/install/desktop/editors/linux/onlyoffice-desktopeditors_amd64.deb" && \
17-
apt install -y --no-install-recommends \
19+
"https://github.com/ONLYOFFICE/DesktopEditors/releases/download/${ONLYOFFICE_VERSION}/onlyoffice-desktopeditors_amd64.deb" && \
20+
apt-get update && \
21+
apt-get install -y \
1822
/tmp/onlyoffice.deb && \
1923
echo "**** customize desktop file ****" && \
2024
sed -i \
@@ -28,8 +32,6 @@ RUN \
2832
echo "**** set bin name ****" && \
2933
echo "onlyoffice-pa" > /bin-name && \
3034
echo "**** cleanup ****" && \
31-
apt-get remove -y \
32-
desktop-file-utils && \
3335
rm -rf \
3436
/root/.cache \
3537
/var/lib/apt/lists/* \

0 commit comments

Comments
 (0)