aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 09b1272..0bcaa9e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,8 @@
FROM python:3.6
+RUN groupadd -g 5123 cdb && \
+ useradd -r -u 5123 -g cdb cdb
+
WORKDIR /home/cdb
COPY requirements.txt requirements.txt
@@ -10,3 +13,7 @@ COPY utils utils
COPY app app
COPY migrations migrations
COPY config.cfg ./config.cfg
+
+RUN chown cdb:cdb /home/cdb -R
+
+USER cdb