lighttpd web server with optimized configuration for high traffic frontend/static web app
100K+
lighttpd is a secure, fast, compliant, and very flexible web-server that has been optimized for high-performance environmentsdocker-lighttpd is a lighttpd docker image designed to use as base image for building frontend/static web app docker image (e.g. React)docker-lighttpd as a base image (FROM) and copy your web artifacts to /var/www/html/var/www/html - Document root/etc/lighttpd/lighttpd.conf - Entry point of to include configs from conf.d/*.conf/etc/lighttpd/conf.d/
00-mime-types.conf - MIME types definition derived from NGINX /etc/nginx/mime.types01-server.conf 05-webroot.conf 11-access.conf - Configs derived from the default lighttpd.conf12-expire.conf 13-status.conf 14-rewrite.conf - Example configs for several use casesFeel free to replace or modify these config files if required!
lighttpd user80FROM node:14 AS builder
COPY package.json \
package-lock.json \
/usr/web/
WORKDIR /usr/web/
RUN npm ci
COPY public/ /usr/web/public/
COPY src/ /usr/web/src/
RUN npm run build
FROM rtsp/lighttpd
COPY --from=builder /usr/web/build/ /var/www/html/
docker run -d \
--name your-webapp \
-v /webapp/dir:/var/www/html:ro \
-p 8080:80 \
rtsp/lighttpd
Content type
Image
Digest
sha256:2e670b313…
Size
5.4 MB
Last updated
3 months ago
docker pull rtsp/lighttpd