Skip to content

Commit

Permalink
satosa proxy runned by satosa user
Browse files Browse the repository at this point in the history
  • Loading branch information
MdreW committed Nov 5, 2024
1 parent dd5d2ad commit cb50f6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions example/uwsgi_setup/uwsgi/uwsgi.ini.docker
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb50f6d

Please sign in to comment.