Caddy

JS
R
JavaScript

Caddy is a powerful, easy-to-use web server with automatic HTTPS. It simplifies deployment, improves security, and offers built-in features like reverse proxying and load balancing. Perfect for developers seeking a modern, efficient solution for serving web content and managing SSL/TLS certificates effortlessly.

1======
2FROM node AS build
3WORKDIR /app
4COPY package*.json ./
5RUN npm ci
6COPY . .
7# RUN npm test - if you want to test before to build
8RUN npm run build
9
10FROM abiosoft/caddy:1.0.3
11COPY Caddyfile /etc/Caddyfile
12COPY /build /usr/share/caddy/html
13
14
15======
160.0.0.0:80 {
17	gzip
18	log / stdout "{method} {path} {status}"
19	root /usr/share/caddy/html
20	rewrite {
21		regexp .*
22		to {path} /
23	}
24}

Created on 4/12/2024