2020-08-03 09:52:17 +00:00
|
|
|
ARG oo_version=5.6.0.17
|
2020-03-30 15:44:55 +00:00
|
|
|
FROM onlyoffice/documentserver:$oo_version
|
2020-08-03 09:52:17 +00:00
|
|
|
ARG oo_version=5.6.0.17
|
2020-03-30 15:44:55 +00: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-17 21:03:53 +00:00
|
|
|
# source patching and compilation
|
2020-03-30 15:44:55 +00:00
|
|
|
RUN apt-get update && apt-get install -y \
|
2020-04-17 21:03:53 +00: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 15:44:55 +00:00
|
|
|
|
|
|
|
|
2020-04-17 21:03:53 +00:00
|
|
|
RUN mkdir /build
|
|
|
|
WORKDIR /build
|
2020-03-30 15:44:55 +00:00
|
|
|
|
2020-04-17 21:03:53 +00:00
|
|
|
RUN git clone --branch v$oo_version --depth 1 https://github.com/ONLYOFFICE/server.git .
|
2020-03-30 15:44:55 +00:00
|
|
|
|
2020-04-17 21:03:53 +00:00
|
|
|
COPY license.patch /build/
|
2020-04-19 11:07:33 +00:00
|
|
|
RUN git apply license.patch
|
2020-03-30 15:44:55 +00:00
|
|
|
|
|
|
|
|
2020-04-17 21:03:53 +00: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 15:44:55 +00:00
|
|
|
|
2020-04-17 21:03:53 +00:00
|
|
|
WORKDIR /
|
|
|
|
RUN rm -rf /build
|