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 alpine:latest |
||||
FROM nginxinc/nginx-unprivileged:1.23-alpine |
||||
|
||||
EXPOSE 8080 |
||||
|
||||
RUN apk add --no-cache lighttpd=1.4.54-r0 |
||||
|
||||
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"] |
||||
COPY static/ /usr/share/nginx/html/ |
||||
|
@ -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