knope.dev (sha256:e50e904bb48f2cf1d278fde4c98f79e821461d00a366717ce7c20fd940042548)
Published 2026-05-17 18:14:25 +00:00 by jfro
Installation
docker pull git.knope.dev/jfro/knope.dev@sha256:e50e904bb48f2cf1d278fde4c98f79e821461d00a366717ce7c20fd940042548sha256:e50e904bb48f2cf1d278fde4c98f79e821461d00a366717ce7c20fd940042548Image layers
| ADD alpine-minirootfs-3.23.4-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| RUN /bin/sh -c apk add --no-cache lighttpd && mkdir -p /var/www /var/log/lighttpd /run/lighttpd && chown -R lighttpd:lighttpd /var/www /var/log/lighttpd /run/lighttpd # buildkit |
| COPY /src/public /var/www/ # buildkit |
| RUN /bin/sh -c cat > /etc/lighttpd/lighttpd.conf <<'EOF' server.modules = ( "mod_access", "mod_compress", "mod_expire" ) server.document-root = "/var/www" server.port = 80 server.username = "lighttpd" server.groupname = "lighttpd" server.pid-file = "/run/lighttpd/lighttpd.pid" # MIME types mimetype.assign = ( ".html" => "text/html", ".htm" => "text/html", ".txt" => "text/plain", ".css" => "text/css", ".js" => "text/javascript", ".json" => "application/json", ".xml" => "application/xml", ".atom" => "application/atom+xml", ".rss" => "application/rss+xml", ".jpg" => "image/jpeg", ".jpeg" => "image/jpeg", ".png" => "image/png", ".gif" => "image/gif", ".svg" => "image/svg+xml", ".ico" => "image/x-icon", ".webp" => "image/webp", ".woff" => "font/woff", ".woff2" => "font/woff2", ".ttf" => "font/ttf", ".otf" => "font/otf", ".pdf" => "application/pdf", ".webmanifest" => "application/manifest+json", "" => "application/octet-stream" ) # Compression compress.cache-dir = "/tmp/lighttpd/compress" compress.filetype = ( "text/html", "text/plain", "text/css", "text/javascript", "application/javascript", "application/json", "application/xml", "application/atom+xml", "application/rss+xml", "image/svg+xml" ) # Cache headers for static assets $HTTP["url"] =~ "\.(css|js|jpg|jpeg|png|gif|ico|svg|woff|woff2|ttf|otf)$" { expire.url = ( "" => "access plus 14 days" ) } # Index files index-file.names = ( "index.html" ) # Logging server.errorlog = "/var/log/lighttpd/error.log" EOF # buildkit |
| RUN /bin/sh -c mkdir -p /tmp/lighttpd/compress && chown -R lighttpd:lighttpd /tmp/lighttpd # buildkit |
| EXPOSE [80/tcp] |
| USER lighttpd |
| CMD ["lighttpd" "-D" "-f" "/etc/lighttpd/lighttpd.conf"] |
Details
2026-05-17 18:14:25 +00:00
Versions (3)
View all
Container
0
OCI / Docker
linux/amd64
6.6 MiB
latest
2026-05-17
cf6f88e42212749832909677b1055f6fd8a5cc7f
2026-05-17
3e38c0c8656c5785f21a93c49b47f5b24fe1b3f9
2026-05-17