Mise à jour de 'compile_only_office'

tobias ollive 2022-10-05 21:05:28 +02:00
parent 2d8fb90245
commit ecc11d8bce

@ -49,4 +49,52 @@ le paquet deb est disponible dans le répertoire `$HOME/onlyoffice/package-docum
## Création de l'image docker ## Création de l'image docker
- uploader de paquet sur le serveur - rendre accessible le paquet sur internet
- cloner le repo `https://github.com/ONLYOFFICE/Docker-DocumentServer`
- modifier le dockerfile
```
+++ b/Dockerfile
@@ -1,5 +1,4 @@
FROM ubuntu:22.04 as documentserver
-LABEL maintainer Ascensio System SIA <support@onlyoffice.com>
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive PG_VERSION=14
@@ -64,6 +63,7 @@ RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \
service rabbitmq-server stop && \
service supervisor stop && \
service nginx stop && \
+ apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY config /app/ds/setup/config/
@@ -74,24 +74,24 @@ EXPOSE 80 443
ARG COMPANY_NAME=onlyoffice
ARG PRODUCT_NAME=documentserver
ARG PRODUCT_EDITION=
-ARG PACKAGE_VERSION=0.0.0-0
+ARG PACKAGE_VERSION=7.2.1-9
ARG TARGETARCH
-ARG PACKAGE_BASEURL="http://download.onlyoffice.com/install/documentserver/linux"
-ARG PACKAGE_FILE="${COMPANY_NAME}-${PRODUCT_NAME}${PRODUCT_EDITION}_${PACKAGE_VERSION}_${TARGETARCH}.deb"
ENV COMPANY_NAME=$COMPANY_NAME \
PRODUCT_NAME=$PRODUCT_NAME \
PRODUCT_EDITION=$PRODUCT_EDITION
-RUN wget -q -P /tmp "$PACKAGE_BASEURL/$PACKAGE_FILE" && \
+
+RUN wget "__URL__DU__PAQUET__" -O /tmp/onlyoffice.deb && \
apt-get -y update && \
service postgresql start && \
- apt-get -yq install /tmp/$PACKAGE_FILE && \
+ apt-get -yq install /tmp/onlyoffice.deb && \
service postgresql stop && \
service supervisor stop && \
chmod 755 /app/ds/*.sh && \
- rm -f /tmp/$PACKAGE_FILE && \
rm -rf /var/log/$COMPANY_NAME && \
+ rm -rf /tmp/onlyoffice.deb \
+ apt-get clean && \
rm -rf /var/lib/apt/lists/*
```