summaryrefslogtreecommitdiffstats
path: root/postgresql/Dockerfile
diff options
context:
space:
mode:
authorYulqen <246857+yulqen@users.noreply.github.com>2024-04-22 15:32:14 +0100
committerGitHub <noreply@github.com>2024-04-22 15:32:14 +0100
commitb465c1667dff0fbf2a9b18c577bd10c989beefa2 (patch)
treec85d12267d1c36c272f5966987a6960c0316f014 /postgresql/Dockerfile
parentf2209833a4c16ba32f91db9f2fbf2e7b22d99f79 (diff)
parent3e0defc7b5d7a5498aec6851ae00b026c7fa6817 (diff)
Merge pull request #20 from defencedigital/change-dockerfile
Further changes to Dockerfile
Diffstat (limited to '')
-rw-r--r--postgresql/Dockerfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/postgresql/Dockerfile b/postgresql/Dockerfile
index efe7c5f..1196bce 100644
--- a/postgresql/Dockerfile
+++ b/postgresql/Dockerfile
@@ -1,2 +1,7 @@
FROM postgres:16-alpine
+
+RUN addgroup -S app && adduser -S -g app app
+
+USER app
+
COPY postgresql/populate.sql /docker-entrypoint-initdb.d/