Skip to content

Commit

Permalink
Based on Alpine 3.19.1 with Django 4.2 LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Kojedzinszky committed May 7, 2024
1 parent dbdf481 commit 899ee90
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
FROM alpine:3.18.6
FROM alpine:3.19.1

LABEL org.opencontainers.image.authors "Richard Kojedzinszky <richard@kojedz.in>"
LABEL org.opencontainers.image.source https://github.com/euronetzrt/django

# Install python3 and frequent packages
RUN apk add --no-cache tzdata py3-pip \
# Install python3 and prepare virtualenv
RUN apk add --no-cache tzdata py3-pip py3-virtualenv && \
virtualenv --system-site-packages /usr/local/py3-virtualenv && \
apk del --no-cache py3-virtualenv

ENV PATH=/usr/local/py3-virtualenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

# Install frequent packages
RUN apk add --no-cache \
py3-tz py3-asgiref py3-sqlparse py3-greenlet py3-mimeparse py3-dateutil \
py3-psycopg2 py3-grpcio py3-protobuf py3-paho-mqtt py3-sqlalchemy && \
ln -sf python3 /usr/bin/python && ln -sf pip3 /usr/bin/pip && \
pip install --no-cache -U \
'django<5' \
django-atomic-migrations \
Expand Down

0 comments on commit 899ee90

Please # to comment.