Use Dockerfile

This commit is contained in:
Semen Bezrukov 2019-11-26 16:06:00 +03:00
parent af70dc910e
commit ba0df16da4
2 changed files with 2 additions and 3 deletions

View file

@ -69,7 +69,8 @@ RUN echo "$REPO_URL" | tee /etc/apt/sources.list.d/onlyoffice.list && \
service supervisor stop && \
chmod 755 /app/onlyoffice/*.sh && \
rm -rf /var/log/onlyoffice && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/* && \
echo "SERVER_ADDITIONAL_ERL_ARGS=\"+S 1:1\"" | tee -a /etc/rabbitmq/rabbitmq-env.conf
VOLUME /var/log/onlyoffice /var/lib/onlyoffice /var/www/onlyoffice/Data /var/lib/postgresql /usr/share/fonts/truetype/custom

View file

@ -412,8 +412,6 @@ if [ ${ONLYOFFICE_DATA_CONTAINER_HOST} = "localhost" ]; then
LOCAL_SERVICES+=("rabbitmq-server")
# allow Rabbitmq startup after container kill
rm -rf /var/run/rabbitmq
# number of threads
echo "SERVER_ADDITIONAL_ERL_ARGS=\"+S 1:1\"" >> /etc/rabbitmq/rabbitmq-env.conf
fi
if [ ${REDIS_SERVER_HOST} != "localhost" ]; then