Create data directories with unprivileged user

This commit is contained in:
Michał Ciania 2021-09-16 11:29:15 +02:00
parent f7d9b1ffb1
commit 57de7a641a
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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