forked from ONLYOFFICE/Docker-CommunityServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.ami
28 lines (26 loc) · 1.52 KB
/
Dockerfile.ami
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM onlyoffice/communityserver:latest
ARG APPSETTING_CONFIG=/var/www/onlyoffice/WebStudio/web.appsettings.config
RUN apt-get -y update && \
apt-get install -yq xmlstarlet
RUN xmlstarlet ed -L \
-s "/appSettings" -t elem -n "add" \
-i "/appSettings/add[not(@*)]" -t attr -n "key" -v "fullTextSearch" \
-i "/appSettings/add[@key='fullTextSearch']" -t attr -n "value" -v "false" \
$APPSETTING_CONFIG && \
xmlstarlet ed -L \
-s "/appSettings" -t elem -n "add" \
-i "/appSettings/add[not(@*)]" -t attr -n "key" -v "web.ami.meta" \
-i "/appSettings/add[@key='web.ami.meta']" -t attr -n "value" -v "http://169.254.169.254/latest/meta-data/" \
$APPSETTING_CONFIG && \
xmlstarlet ed -L \
-d "/appSettings/add[@key='files.thirdparty.enable']" \
-s "/appSettings" -t elem -n "add" \
-i "/appSettings/add[not(@*)]" -t attr -n "key" -v "files.thirdparty.enable" \
-i "/appSettings/add[@key='files.thirdparty.enable']" -t attr -n "value" -v "box,dropboxv2,docusign,google,onedrive,nextcloud,owncloud,webdav,kdrive,yandex" \
$APPSETTING_CONFIG && \
xmlstarlet ed -L \
-d "/appSettings/add[@key='web.hide-settings']" \
-s "/appSettings" -t elem -n "add" \
-i "/appSettings/add[not(@*)]" -t attr -n "key" -v "web.hide-settings" \
-i "/appSettings/add[@key='web.hide-settings']" -t attr -n "value" -v "VersionSettings,Monitoring,PublicPortal,PortalRename,Migration,Promocode,TariffSettings,ProxyHttpContent,MailService,FullTextSearch,Storage,EncryptionSettings" \
$APPSETTING_CONFIG