From d1b672457c3fb1c9c89cbc6caa11b98336d0b5d9 Mon Sep 17 00:00:00 2001 From: Grant Duncklee Date: Tue, 23 Jul 2024 11:37:42 -0400 Subject: [PATCH] feat: run as non-root user (#195) Runs the user-fi container as unprivileged `sbl` user. Validated the container is able to function properly with the change. Co-authored-by: gduncklee --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 6d87f4d..b2fcbc9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,4 +16,6 @@ WORKDIR /usr/app/src EXPOSE 8888 +USER sbl + CMD ["uvicorn", "regtech_user_fi_management.main:app", "--host", "0.0.0.0", "--port", "8888", "--log-config", "log-config.yml"]