Hi all,
I'm using osTicket Version v1.17.2 on premise with Microsoft 365 email , it works fine
I'm trying to build a docker image for my osTicket, here my Dockerfile and run osTicket on docker/docker-compose/k8s
FROM trafex/alpine-nginx-php7
USER root
RUN apk --update add curl php8-ldap php8-pecl-oauth
USER nobody
COPY --chown=nobody upload /var/www/html
Folder "upload" already has all plugins and config that I need.
The image worked however when I tried to config Microsoft 365 email , I get this

What I expect

The nginx log look seem fine and similar to on premise version
10.244.1.249 - - [08/Jul/2023:15:14:28 +0000] "POST /scp/ajax.php/email/5/stash HTTP/1.1" 200 1730 "https://helpdesk.mydomain.com/scp/emails.php?id=5" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0" "10.6.6.102" 0.042 0.044 . -
10.244.1.249 - - [08/Jul/2023:15:14:28 +0000] "GET /scp/ajax.php/email/5/auth/config/mailbox/oauth2:msmail HTTP/1.1" 200 1730 "https://helpdesk.mydomain.com/scp/emails.php?id=5" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0" "10.6.6.102" 0.040 0.040 . -
How can I fix it ? Did I miss some php extension ? Please give me some advice, thank you very much.