Skip to content

Commit

Permalink
Revert "fix: use virtual enviroment for python package"
Browse files Browse the repository at this point in the history
This reverts commit f49b1b7.
  • Loading branch information
Salvatore Laiso committed Feb 7, 2024
1 parent 19a73c9 commit 3b7d950
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
15 changes: 6 additions & 9 deletions example_sp/django.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.19.1
FROM alpine:3.18

RUN apk update
RUN apk add --update --no-cache tzdata
Expand All @@ -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
1 change: 0 additions & 1 deletion example_sp/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
. /djangosaml2_sp/.venv/bin/activate
python -B manage.py migrate
python -B manage.py runserver 0.0.0.0:8000

0 comments on commit 3b7d950

Please sign in to comment.