🎉 miniflake docker files
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s Details

This commit is contained in:
DrMaxNix 2024-04-20 15:58:29 +02:00
parent 8d3eb5170d
commit 4a1599c606
4 changed files with 2016 additions and 0 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM alpine:latest
RUN apk --update add lighttpd fcgi php82 php82-fpm php82-gd php82-curl php82-cgi php82-mbstring php82-intl php82-bcmath php82-mysqli php82-posix php82-session php82-fileinfo && rm -rf /var/cache/apk/*
RUN ln -sf /usr/bin/php-cgi82 /usr/bin/php-cgi
RUN ln -sf /usr/sbin/php-fpm82 /usr/bin/php-fpm
RUN rm -rf /var/www/*
COPY index.php /var/www
COPY php.ini /etc/php82/php.ini
COPY lighttpd.conf /etc/lighttpd/lighttpd.conf
RUN mkdir -p /run/lighttpd/ && chown 100 /run/lighttpd/
EXPOSE 80
ENTRYPOINT php-fpm -D && lighttpd -D -f /etc/lighttpd/lighttpd.conf

3
index.php Normal file
View File

@ -0,0 +1,3 @@
<?php
echo("<pre style='background-color: #af8;'>" . print_r($_SERVER, true) . "</pre>")
?>

22
lighttpd.conf Normal file
View File

@ -0,0 +1,22 @@
server.document-root = "/var/www"
server.modules += ("mod_rewrite")
url.rewrite-once = ("^[^\?]*(\?.*)?$" => "/index.php$1")
server.port = 80
server.username = "lighttpd"
server.groupname = "lighttpd"
mimetype.assign = (
".html" => "text/html",
".htm" => "text/html",
".txt" => "text/plain",
".jpg" => "image/jpeg",
".png" => "image/png"
)
include "mod_fastcgi.conf"
static-file.exclude-extensions = (".fcgi", ".php", ".rb", "~", ".inc")
index-file.names = ("index.html", "index.htm", "index.php")

1977
php.ini Normal file

File diff suppressed because it is too large Load Diff