19 lines
693 B
Docker
19 lines
693 B
Docker
### Arguments avavlivable only for FROM instruction ###
|
|
ARG PRODUCT_EDITION=
|
|
ARG TAG=latest
|
|
|
|
FROM onlyoffice/documentserver${PRODUCT_EDITION}:${TAG} as documentserver-nonexample
|
|
|
|
ARG COMPANY_NAME=onlyoffice
|
|
ARG PRODUCT_NAME=documentserver
|
|
ARG DS_SUPERVISOR_CONF=/etc/supervisor/conf.d/ds.conf
|
|
ARG WELCOME_CONF_DIR=/etc/nginx/includes/0ds-welcome.conf
|
|
|
|
### Remove all documentserver-example data ###
|
|
|
|
RUN rm -rf /var/www/$COMPANY_NAME/$PRODUCT_NAME-example \
|
|
&& rm -rf /etc/$COMPANY_NAME/$PRODUCT_NAME-example \
|
|
&& rm -f $DS_SUPERVISOR_CONF \
|
|
&& rm -f /etc/nginx/includes/ds-example.conf \
|
|
&& ln -s /etc/$COMPANY_NAME/$PRODUCT_NAME/supervisor/ds.conf $DS_SUPERVISOR_CONF
|