FROM debian:buster RUN apt-get update -y RUN apt-get install python3 python3-setuptools python3-pip -y RUN apt-get install php7.3-cli --no-install-recommends -y RUN apt-get install git -y RUN apt-get clean && rm -rf /tmp/* /var/lib/apt/lists/* /var/cache/apt/* WORKDIR /tmp RUN git clone https://github.com/saadnpq/matrixcli.git RUN cd ./matrixcli && ./install.sh RUN rm -rf /tmp/matrixcli EXPOSE 8080 RUN useradd -M -s /usr/sbin/nologin bot USER bot:bot RUN mkdir -p /tmp/bot RUN chmod 0700 /tmp/bot COPY src/bot.php /tmp/bot/index.php WORKDIR /tmp/bot CMD ["php","-S","0.0.0.0:8080"]