From 01c3c74b9a2d0e376fe76a41651002ac5de5d69a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Sun, 13 Mar 2022 23:57:50 +0100 Subject: [PATCH] Move copy command to the end of the file Reason: faster builds when editing scripts --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 120ec2a..dc4e455 100644 --- a/Dockerfile +++ b/Dockerfile @@ -103,9 +103,6 @@ RUN sed -i 's/^Depends: debconf (>= 0.5) | debconf-2.0, adduser, ca-certificates RUN dpkg-deb -b /build/onlyoffice /build/onlyoffice-documentserver-modified.deb -COPY config /app/ds/setup/config/ -COPY run-document-server.sh /app/ds/run-document-server.sh - EXPOSE 80 443 ARG COMPANY_NAME=onlyoffice @@ -119,11 +116,15 @@ RUN service postgresql start && \ apt-get -yq install /build/onlyoffice-documentserver-modified.deb && \ service postgresql stop && \ service supervisor stop && \ - chmod 755 /app/ds/*.sh && \ rm -rf /build/ && \ rm -rf /var/log/$COMPANY_NAME && \ rm -rf /var/lib/apt/lists/* +COPY config /app/ds/setup/config/ +COPY run-document-server.sh /app/ds/run-document-server.sh + +RUN chmod 755 /app/ds/*.sh + VOLUME /var/log/$COMPANY_NAME /var/lib/$COMPANY_NAME /var/www/$COMPANY_NAME/Data /var/lib/postgresql /var/lib/rabbitmq /var/lib/redis /usr/share/fonts/truetype/custom ENTRYPOINT ["/app/ds/run-document-server.sh"]