From df804f5a47358318413abba8b0f56837f1e820bb Mon Sep 17 00:00:00 2001 From: Yves Lavoie Date: Wed, 28 Jun 2017 12:15:17 -0400 Subject: [PATCH] Regroup user related files toward the bottom --- Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 99ee51e..deeb4eb 100755 --- a/Dockerfile +++ b/Dockerfile @@ -74,13 +74,6 @@ ENV POSTGRES_HOST postgres ENV POSTGRES_PORT 5432 ENV DEFAULT_DB lsmb -COPY start.sh /usr/local/bin/start.sh -COPY update_ssmtp.sh /usr/local/bin/update_ssmtp.sh - -RUN chown www-data /etc/ssmtp /etc/ssmtp/ssmtp.conf && \ - chmod +x /usr/local/bin/update_ssmtp.sh /usr/local/bin/start.sh && \ - mkdir -p /var/www && chown www-data /var/www - # Work around an aufs bug related to directory permissions: RUN mkdir -p /tmp && \ chmod 1777 /tmp @@ -88,6 +81,13 @@ RUN mkdir -p /tmp && \ # Internal Port Expose EXPOSE 5001 +COPY start.sh /usr/local/bin/start.sh +COPY update_ssmtp.sh /usr/local/bin/update_ssmtp.sh + +RUN chown www-data /etc/ssmtp /etc/ssmtp/ssmtp.conf && \ + chmod +x /usr/local/bin/update_ssmtp.sh /usr/local/bin/start.sh && \ + mkdir -p /var/www && chown www-data /var/www + # If ledgersmb.conf does not exist, www-data user needs to be able to create it. RUN chown www-data /srv/ledgersmb