From 3f12258e98fc66d8820719f333eb93d4a34bff80 Mon Sep 17 00:00:00 2001 From: pictuga Date: Tue, 19 Oct 2021 22:20:44 +0200 Subject: [PATCH] Docker: default to non-root exec --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 3c74a2f..80ed8d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,4 +5,6 @@ RUN apk add --no-cache python3 py3-lxml py3-pip py3-wheel git ADD . /app RUN pip3 install --no-cache-dir /app[full] gunicorn +USER 1000:1000 + CMD gunicorn --bind 0.0.0.0:8000 -w 4 --preload --access-logfile - morss