Closed Carlososuna11 closed 2 years ago
Hi! I'm curious how you acomplished that. How did you make the python script work?
I extended ejabberd's Dockerfile and added python to it. This works for me
FROM ejabberd/ecs:21.07
USER root
ENV PYTHONUNBUFFERED=1
RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
RUN python3 -m ensurepip
RUN pip3 install --no-cache --upgrade pip setuptools
RUN apk upgrade --update musl \
&& apk add \
postgresql-dev gcc python3-dev musl-dev git
COPY ./requirements.txt .
RUN pip install -r requirements.txt
USER ejabberd
VOLUME ["$HOME/database","$HOME/conf","$HOME/logs","$HOME/upload"]
EXPOSE 1883 4369-4399 5222 5269 5280 5443
ENTRYPOINT ["/home/ejabberd/bin/ejabberdctl"]
CMD ["foreground"]
If you have a better solution, I would like to know
Hello make this docker-compose and I have an external authorization script in python, what is the configuration that I have to do to make it run? Docker-compose
Update: I saw my mistake, sorry :)