From de68238edb10a194a518b8b4848562f35c0849d8 Mon Sep 17 00:00:00 2001 From: Dirk Heilig Date: Tue, 12 Sep 2023 21:09:33 +0200 Subject: [PATCH] init --- Dockerfile | 16 ++++++++++++++++ index.php | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 Dockerfile create mode 100755 index.php diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..be4b567 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM debian:12-slim +RUN apt-get update && apt-get upgrade -y +RUN apt-get install -y \ + apache2 \ + php\ + php-opcache\ + php-yaml \ + php-mbstring \ + php-curl + + +RUN rm -rf /var/www/html/index.html +ADD index.php /var/www/html/index.php + + +ENTRYPOINT ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"] \ No newline at end of file diff --git a/index.php b/index.php new file mode 100755 index 0000000..8a55965 --- /dev/null +++ b/index.php @@ -0,0 +1,50 @@ + "m.text", "body" => $message]) + ); + curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT"); + curl_exec($ch); +}