From 57de7a641a3a663e7e13a398f081c121a1403913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Ciania?= Date: Thu, 16 Sep 2021 11:29:15 +0200 Subject: [PATCH] Create data directories with unprivileged user --- dockerfile | 1 + dockerfile-alpine | 1 + 2 files changed, 2 insertions(+) diff --git a/dockerfile b/dockerfile index 2ff9c4f7c..97f594d9a 100644 --- a/dockerfile +++ b/dockerfile @@ -23,6 +23,7 @@ RUN apt update && \ sqlite3 \ iputils-ping && \ pip3 --no-cache-dir install apprise && \ + install -d -m 0755 -o node -g node /app/data && \ rm -rf /var/lib/apt/lists/* # Copy app files from build layer diff --git a/dockerfile-alpine b/dockerfile-alpine index abdaaa3d5..f2f4321aa 100644 --- a/dockerfile-alpine +++ b/dockerfile-alpine @@ -19,6 +19,7 @@ WORKDIR /app # Install apprise RUN apk add --no-cache iputils python3 py3-cryptography py3-pip py3-six py3-yaml py3-click py3-markdown py3-requests py3-requests-oauthlib && \ pip3 --no-cache-dir install apprise && \ + install -d -m 0755 -o node -g node /app/data && \ rm -rf /root/.cache # Copy app files from build layer