Add Dockerfile and components
This commit is contained in:
commit
e85e625e55
4 changed files with 170 additions and 0 deletions
37
Dockerfile
Normal file
37
Dockerfile
Normal file
|
@ -0,0 +1,37 @@
|
|||
ARG oo_version=5.5.0.165
|
||||
FROM onlyoffice/documentserver:$oo_version
|
||||
|
||||
|
||||
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
|
||||
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
python3-pip \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& pip3 install pycryptodome
|
||||
|
||||
|
||||
COPY license.py /tmp/
|
||||
RUN python3 /tmp/license.py
|
||||
|
||||
RUN pip3 uninstall -y pycryptodome \
|
||||
&& apt-get purge -y python3-pip \
|
||||
&& apt-get purge -y --autoremove \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
COPY run-oo.sh /usr/local/bin/run-oo.sh
|
||||
RUN chmod a+x /usr/local/bin/run-oo.sh
|
||||
|
||||
|
||||
ENTRYPOINT [ "/usr/local/bin/run-oo.sh" ]
|
Loading…
Add table
Add a link
Reference in a new issue