2020-09-26 18:21:15 +08:00
|
|
|
ARG oo_version=5.6.5.3
|
2020-03-30 23:44:55 +08:00
|
|
|
FROM onlyoffice/documentserver:$oo_version
|
2020-09-26 18:21:15 +08:00
|
|
|
ARG oo_version=5.6.5.3
|
2020-03-30 23:44:55 +08:00
|
|
|
|
|
|
|
|
|
|
|
RUN sed -is \
|
|
|
|
's/isSupportEditFeature:function(){return!1}/isSupportEditFeature:function(){return true}/g' \
|
|
|
|
/var/www/onlyoffice/documentserver/web-apps/apps/documenteditor/mobile/app.js
|
|
|
|
|
|
|
|
RUN sed -is \
|
|
|
|
's/isSupportEditFeature:function(){return!1}/isSupportEditFeature:function(){return true}/g' \
|
|
|
|
/var/www/onlyoffice/documentserver/web-apps/apps/presentationeditor/mobile/app.js
|
|
|
|
|
|
|
|
RUN sed -is \
|
|
|
|
's/isSupportEditFeature:function(){return!1}/isSupportEditFeature:function(){return true}/g' \
|
|
|
|
/var/www/onlyoffice/documentserver/web-apps/apps/spreadsheeteditor/mobile/app.js
|
|
|
|
|
|
|
|
|
2020-04-18 05:03:53 +08:00
|
|
|
# source patching and compilation
|
2020-03-30 23:44:55 +08:00
|
|
|
RUN apt-get update && apt-get install -y \
|
2020-04-18 05:03:53 +08:00
|
|
|
git \
|
|
|
|
curl \
|
|
|
|
&& curl -sL https://deb.nodesource.com/setup_10.x | bash - \
|
|
|
|
&& apt install -y nodejs \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2020-03-30 23:44:55 +08:00
|
|
|
|
|
|
|
|
2020-04-18 05:03:53 +08:00
|
|
|
RUN mkdir /build
|
|
|
|
WORKDIR /build
|
2020-03-30 23:44:55 +08:00
|
|
|
|
2020-04-18 05:03:53 +08:00
|
|
|
RUN git clone --branch v$oo_version --depth 1 https://github.com/ONLYOFFICE/server.git .
|
2020-03-30 23:44:55 +08:00
|
|
|
|
2020-04-18 05:03:53 +08:00
|
|
|
COPY license.patch /build/
|
2020-04-19 19:07:33 +08:00
|
|
|
RUN git apply license.patch
|
2020-03-30 23:44:55 +08:00
|
|
|
|
|
|
|
|
2020-04-18 05:03:53 +08:00
|
|
|
RUN npm install pkg grunt-cli \
|
|
|
|
&& make \
|
|
|
|
&& node_modules/.bin/pkg --targets=linux build/server/FileConverter \
|
|
|
|
&& node_modules/.bin/pkg --targets=linux build/server/DocService \
|
|
|
|
&& cp fileconverter /var/www/onlyoffice/documentserver/server/FileConverter/converter \
|
|
|
|
&& cp coauthoring /var/www/onlyoffice/documentserver/server/DocService/docservice
|
2020-03-30 23:44:55 +08:00
|
|
|
|
2020-04-18 05:03:53 +08:00
|
|
|
WORKDIR /
|
|
|
|
RUN rm -rf /build
|