Jerry Aldrich 3 years ago
parent 1d70f24999
commit 4514104a75
  1. 14
      Dockerfile
  2. 23
      lighttpd.conf

@ -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…
Cancel
Save