🎉 miniflake docker files
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
Details
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
Details
This commit is contained in:
parent
8d3eb5170d
commit
4a1599c606
|
@ -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
|
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
echo("<pre style='background-color: #af8;'>" . print_r($_SERVER, true) . "</pre>")
|
||||
?>
|
|
@ -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")
|
Loading…
Reference in New Issue