Skip to content

Commit

Permalink
fix: update Django base to Alpine 3.19.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Salvatore Laiso committed Feb 1, 2024
1 parent 1efc35f commit aa85cce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 6 additions & 8 deletions example_sp/django.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM alpine:3.18
FROM alpine:3.19.1

RUN apk update
RUN apk add --update --no-cache tzdata
RUN cp /usr/share/zoneinfo/Europe/Rome /etc/localtime
Expand All @@ -9,11 +9,9 @@ RUN apk del tzdata
COPY example_sp/djangosaml2_sp/requirements.txt /
COPY example_sp/entrypoint.sh /

WORKDIR /djangosaml2_sp

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 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 pip list
WORKDIR /djangosaml2_sp

RUN pip3 install -r ../requirements.txt --ignore-installed --root-user-action=ignore
RUN python3 -m venv .venv && . .venv/bin/activate && pip3 install --upgrade pip setuptools \
&& pip3 install -r ../requirements.txt --ignore-installed --root-user-action=ignore
1 change: 1 addition & 0 deletions example_sp/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
. /djangosaml2_sp/.venv/bin/activate
python -B manage.py migrate
python -B manage.py runserver 0.0.0.0:8000

0 comments on commit aa85cce

Please sign in to comment.