2022-08-29 10:40:25 +02:00
|
|
|
### Arguments avavlivable only for FROM instruction ###
|
2023-05-25 15:36:33 +02:00
|
|
|
ARG PULL_TAG=latest
|
2022-08-29 10:40:25 +02:00
|
|
|
ARG COMPANY_NAME=onlyoffice
|
|
|
|
ARG PRODUCT_EDITION=
|
2023-06-29 11:50:17 +02:00
|
|
|
### Rebuild arguments
|
|
|
|
ARG UCS_PREFIX=
|
|
|
|
ARG IMAGE=${COMPANY_NAME}/documentserver${PRODUCT_EDITION}${UCS_PREFIX}:${PULL_TAG}
|
2022-08-29 10:40:25 +02:00
|
|
|
|
|
|
|
### Build main-release ###
|
|
|
|
|
2023-05-25 15:36:33 +02:00
|
|
|
FROM ${COMPANY_NAME}/4testing-documentserver${PRODUCT_EDITION}:${PULL_TAG} as documentserver-stable
|
2022-08-29 10:40:25 +02:00
|
|
|
|
2023-06-29 11:50:17 +02:00
|
|
|
### Rebuild stable images with secure updates
|
|
|
|
FROM ${IMAGE} as documentserver-stable-rebuild
|
|
|
|
RUN echo "This is rebuild" \
|
|
|
|
&& apt-get update -y \
|
|
|
|
&& apt-get upgrade -y
|
|
|
|
|
2022-08-29 10:40:25 +02:00
|
|
|
### Build nonexample ###
|
|
|
|
|
2023-05-25 15:36:33 +02:00
|
|
|
FROM ${COMPANY_NAME}/documentserver${PRODUCT_EDITION}:${PULL_TAG} as documentserver-nonexample
|
2022-08-29 10:40:25 +02:00
|
|
|
|
|
|
|
ARG COMPANY_NAME=onlyoffice
|
|
|
|
ARG PRODUCT_NAME=documentserver
|
|
|
|
ARG DS_SUPERVISOR_CONF=/etc/supervisor/conf.d/ds.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
|