diff --git a/example_sp/django.Dockerfile b/example_sp/django.Dockerfile index cc4581e4..a296617a 100644 --- a/example_sp/django.Dockerfile +++ b/example_sp/django.Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.19.1 +FROM alpine:3.18 RUN apk update RUN apk add --update --no-cache tzdata @@ -9,14 +9,11 @@ RUN apk del tzdata COPY example_sp/djangosaml2_sp/requirements.txt / COPY example_sp/entrypoint.sh / -RUN apk add --update xmlsec-dev libffi-dev openssl-dev python3 py3-pip python3-dev procps git openssl build-base gcc wget bash jq yq - -RUN adduser -D -g '' django - -USER django - WORKDIR /djangosaml2_sp -RUN python3 -m venv .venv && . .venv/bin/activate && pip3 install --upgrade pip setuptools \ - && pip3 install -r ../requirements.txt --ignore-installed +RUN apk add --update xmlsec-dev libffi-dev openssl-dev python3 py3-pip python3-dev procps git openssl build-base gcc wget bash jq yq \ +&& pip3 install --upgrade pip setuptools --root-user-action=ignore + +RUN pip list +RUN pip3 install -r ../requirements.txt --ignore-installed --root-user-action=ignore \ No newline at end of file diff --git a/example_sp/entrypoint.sh b/example_sp/entrypoint.sh index 2caf5ef6..9cd44e1c 100644 --- a/example_sp/entrypoint.sh +++ b/example_sp/entrypoint.sh @@ -1,3 +1,2 @@ -. /djangosaml2_sp/.venv/bin/activate python -B manage.py migrate python -B manage.py runserver 0.0.0.0:8000 \ No newline at end of file