parent
1d70f24999
commit
4514104a75
2 changed files with 2 additions and 35 deletions
@ -1,15 +1,5 @@ |
|||||||
# Switch to alpine to serve content built above |
FROM nginxinc/nginx-unprivileged:1.23-alpine |
||||||
FROM alpine:latest |
|
||||||
|
|
||||||
EXPOSE 8080 |
EXPOSE 8080 |
||||||
|
|
||||||
RUN apk add --no-cache lighttpd=1.4.54-r0 |
COPY static/ /usr/share/nginx/html/ |
||||||
|
|
||||||
RUN chown -R lighttpd /var/log/lighttpd |
|
||||||
|
|
||||||
USER lighttpd |
|
||||||
|
|
||||||
COPY lighttpd.conf /etc/lighttpd/lighttpd.conf |
|
||||||
COPY static/ /srv/http/ |
|
||||||
|
|
||||||
CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"] |
|
||||||
|
@ -1,23 +0,0 @@ |
|||||||
var.logdir = "/var/log/lighttpd" |
|
||||||
var.statedir = "/var/lib/lighttpd" |
|
||||||
|
|
||||||
server.modules = ( |
|
||||||
"mod_access", |
|
||||||
"mod_accesslog", |
|
||||||
) |
|
||||||
|
|
||||||
include "mime-types.conf" |
|
||||||
|
|
||||||
server.document-root = "/srv/http/" |
|
||||||
server.pid-file = "/tmp/lighttpd.pid" |
|
||||||
|
|
||||||
server.errorlog-use-syslog = "enable" |
|
||||||
accesslog.use-syslog = "enable" |
|
||||||
|
|
||||||
server.indexfiles = ("index.php", "index.html", "index.htm", "default.htm") |
|
||||||
|
|
||||||
server.port = 8080 |
|
||||||
|
|
||||||
url.access-deny = ("~", ".inc") |
|
||||||
|
|
||||||
server.network-backend = "writev" |
|
Loading…
Reference in new issue