|
|
@@ -0,0 +1,15 @@
|
|
|
+#############################
|
|
|
+# Django 5.1 pour erozone > erozone_p3d5104:lastest
|
|
|
+
|
|
|
+FROM python:alpine3.21
|
|
|
+VOLUME /mnt/projet
|
|
|
+WORKDIR /mnt/projet/
|
|
|
+RUN apk add tzdata build-base py-pip py3-mysqlclient mariadb-connector-c-dev g++ freetype-dev jpeg-dev gettext bash zlib-dev libxslt-dev libffi-dev
|
|
|
+RUN cp /usr/share/zoneinfo/Europe/Paris /etc/localtime
|
|
|
+RUN echo Europe/Brussels > /etc/timezone
|
|
|
+RUN echo Europe/Paris > /etc/TZ
|
|
|
+RUN unset TZ
|
|
|
+RUN apk del tzdata
|
|
|
+RUN pip install --upgrade pip
|
|
|
+RUN pip install Django==5.1.4
|
|
|
+RUN pip install mysqlclient translators django-crispy-forms gunicorn
|