From cb50f6dca8b52f6b50200e8da8e68a246afc267a Mon Sep 17 00:00:00 2001 From: MDreW Date: Tue, 5 Nov 2024 17:41:00 +0100 Subject: [PATCH] satosa proxy runned by satosa user --- Dockerfile | 4 +++- example/uwsgi_setup/uwsgi/uwsgi.ini.docker | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index fb4fbafd..9b96232e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,9 @@ ENV BASEDIR="/satosa_proxy" RUN apk add --update --no-cache tzdata mailcap xmlsec libffi-dev openssl-dev python3 py3-pip python3-dev procps git openssl build-base gcc wget bash jq yq-go pcre-dev RUN python3 -m venv .venv && . .venv/bin/activate && pip3 install --upgrade pip setuptools \ - && pip3 install -r requirements.txt --ignore-installed --root-user-action=ignore && mkdir $BASEDIR + && pip3 install -r requirements.txt --ignore-installed --root-user-action=ignore && mkdir $BASEDIR \ + && addgroup -S satosa && adduser -S satosa -G satosa \ + && chown satosa:satosa $BASEDIR RUN pip list diff --git a/example/uwsgi_setup/uwsgi/uwsgi.ini.docker b/example/uwsgi_setup/uwsgi/uwsgi.ini.docker index 0c4a150b..066e8b2c 100644 --- a/example/uwsgi_setup/uwsgi/uwsgi.ini.docker +++ b/example/uwsgi_setup/uwsgi/uwsgi.ini.docker @@ -4,8 +4,8 @@ base = /opt chdir = /satosa_proxy -uid = root -gid = root +uid = satosa +gid = satosa socket = 0.0.0.0:10000 master = true