update Dockerfile apikaz
This commit is contained in:
@@ -6,11 +6,33 @@ FROM python:3.11
|
|||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
|
|
||||||
#ldap pour le pip install python-ldap car apt-get python-ldap marche po
|
#ldap pour le pip install python-ldap car apt-get python-ldap marche po
|
||||||
RUN apt-get install -y libsasl2-dev python3-dev libldap2-dev libssl-dev ldap-utils
|
RUN apt-get update && apt-get install -y \
|
||||||
|
cpanminus \
|
||||||
|
perl-modules \
|
||||||
|
build-essential \
|
||||||
|
libxml2-dev \
|
||||||
|
libxslt1-dev \
|
||||||
|
zlib1g-dev \
|
||||||
|
gettext \
|
||||||
|
liblocale-gettext-perl \
|
||||||
|
libsasl2-dev \
|
||||||
|
python3-dev \
|
||||||
|
libldap2-dev \
|
||||||
|
libssl-dev \
|
||||||
|
ldap-utils \
|
||||||
|
apg \
|
||||||
|
curl \
|
||||||
|
tar \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
#pour l'api soap sympa', perl est déjà installé mais il faut les modules suivant
|
#pour l'api soap sympa', perl est déjà installé mais il faut les modules suivant
|
||||||
RUN cpan App::cpanminus
|
RUN cpanm --notest --verbose \
|
||||||
RUN cpanm SOAP::Lite XML::LibXML MIME::EncWords Text::LineFold Class::Singleton Locale::Messages
|
SOAP::Lite \
|
||||||
|
XML::LibXML \
|
||||||
|
MIME::EncWords \
|
||||||
|
Text::LineFold \
|
||||||
|
Class::Singleton \
|
||||||
|
Locale::Messages
|
||||||
|
|
||||||
#installer le truc de génération de mot de mdp
|
#installer le truc de génération de mot de mdp
|
||||||
RUN apt-get -y install apg
|
RUN apt-get -y install apg
|
||||||
@@ -29,3 +51,4 @@ EXPOSE 5000
|
|||||||
#les modules python à installer lors du build
|
#les modules python à installer lors du build
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
CMD ["python", "app.py"]
|
CMD ["python", "app.py"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user