From efd8a26f2e0c77345b51fa97e1a2cbf2cadc8b45 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=B6ren=20Ducati?= <ducati@cl.uni-heidelberg.de>
Date: Thu, 26 Sep 2024 18:09:12 +0000
Subject: [PATCH] fix: switch over to python user to drop permissions

---
 Dockerfile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Dockerfile b/Dockerfile
index bee6517..f025150 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -6,6 +6,8 @@ EXPOSE 5000
 
 # First, copy and install only the requirements...
 RUN useradd -ms /bin/bash python && chown -R python:python /app
+USER python
+ENV PATH="$PATH:/home/python/.local/bin"
 RUN pip install --upgrade pip setuptools
 RUN pip install pipenv
 COPY Pipfile.lock .
-- 
GitLab