jvcgpt / Dockerfile
Greums's picture
use lighttpd instead of caddy
ba3bec2
raw
history blame
317 Bytes
FROM node:lts-bookworm-slim AS builder
WORKDIR /app
COPY . /app
RUN npm install
RUN npm run build
FROM jitesoft/lighttpd AS server
WORKDIR /var/www/html
COPY --from=builder /app/dist /var/www/html
COPY lighttpd.conf /etc/lighttpd/lighttpd.conf
EXPOSE 7860
CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]