From 46e5c50b4b632b3867d454a944cf7902a4b5cd01 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Wed, 24 Aug 2022 10:01:20 +0200 Subject: [PATCH] make trivy happy --- rainloop/Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/rainloop/Dockerfile b/rainloop/Dockerfile index 48a6dc9..0e59d52 100644 --- a/rainloop/Dockerfile +++ b/rainloop/Dockerfile @@ -13,9 +13,12 @@ RUN addgroup \ --shell /sbin/nologin \ rainloop -RUN mkdir -p /var/www/rainloop && \ - cd /var/www/rainloop && \ - curl -sL https://repository.rainloop.net/installer.php | php && \ + +RUN mkdir -p /var/www/rainloop + +WORKDIR /var/www/rainloop + +RUN curl -sL https://repository.rainloop.net/installer.php | php && \ mkdir -p /run/nginx /var/run && \ touch /var/run/nginx.pid && \ chown -R rainloop:rainloop /var/www/rainloop @@ -28,6 +31,4 @@ COPY nginx.conf /etc/nginx/nginx.conf COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh -WORKDIR /var/www/rainloop - ENTRYPOINT ["/entrypoint.sh"]