From a2cb80c377345513674ee8b5720e6aa82913aaa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abdulkadir=20Furkan=20=C5=9Eanl=C4=B1?= Date: Mon, 22 Jan 2024 00:10:29 +0100 Subject: [PATCH] Dockerfile: run as user 1000 by default. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Abdulkadir Furkan Şanlı --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 1839caf..5dc96e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,6 @@ COPY main.py requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt +USER 1000:1000 + CMD ["python", "./main.py"]