From 8475af3785bf42aa71eddc73c0923b34e3fbf4fb Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Tue, 17 Mar 2020 22:31:37 +0530 Subject: [PATCH] fix(frappe-worker): set sites volume ownership --- build/frappe-worker/Dockerfile | 4 ++++ build/frappe-worker/v11.Dockerfile | 4 ++++ build/frappe-worker/v12.Dockerfile | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/build/frappe-worker/Dockerfile b/build/frappe-worker/Dockerfile index 40ce9c06..00766f57 100644 --- a/build/frappe-worker/Dockerfile +++ b/build/frappe-worker/Dockerfile @@ -40,5 +40,9 @@ COPY build/common/worker/install_app.sh /usr/local/bin/install_app WORKDIR /home/frappe/frappe-bench/sites +RUN chown -R frappe:frappe /home/frappe/frappe-bench/sites + +VOLUME [ "/home/frappe/frappe-bench/sites" ] + ENTRYPOINT ["docker-entrypoint.sh"] CMD ["start"] diff --git a/build/frappe-worker/v11.Dockerfile b/build/frappe-worker/v11.Dockerfile index 335eb7a9..de61332c 100644 --- a/build/frappe-worker/v11.Dockerfile +++ b/build/frappe-worker/v11.Dockerfile @@ -37,5 +37,9 @@ COPY build/common/worker/install_app.sh /usr/local/bin/install_app WORKDIR /home/frappe/frappe-bench/sites +RUN chown -R frappe:frappe /home/frappe/frappe-bench/sites + +VOLUME [ "/home/frappe/frappe-bench/sites" ] + ENTRYPOINT ["docker-entrypoint.sh"] CMD ["start"] diff --git a/build/frappe-worker/v12.Dockerfile b/build/frappe-worker/v12.Dockerfile index 2f10db39..bfdaa317 100644 --- a/build/frappe-worker/v12.Dockerfile +++ b/build/frappe-worker/v12.Dockerfile @@ -40,5 +40,9 @@ COPY build/common/worker/install_app.sh /usr/local/bin/install_app WORKDIR /home/frappe/frappe-bench/sites +RUN chown -R frappe:frappe /home/frappe/frappe-bench/sites + +VOLUME [ "/home/frappe/frappe-bench/sites" ] + ENTRYPOINT ["docker-entrypoint.sh"] CMD ["start"]