From 4514104a75d2388e636c2611660e4c7e7c96c37b Mon Sep 17 00:00:00 2001 From: Jerry Aldrich Date: Sun, 11 Sep 2022 18:33:12 -0700 Subject: [PATCH] WIP --- Dockerfile | 14 ++------------ lighttpd.conf | 23 ----------------------- 2 files changed, 2 insertions(+), 35 deletions(-) delete mode 100644 lighttpd.conf diff --git a/Dockerfile b/Dockerfile index ddc3071..add0325 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/ diff --git a/lighttpd.conf b/lighttpd.conf deleted file mode 100644 index eb8c62b..0000000 --- a/lighttpd.conf +++ /dev/null @@ -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"