HUB
Sign inSign up

dienbio/caddyalpine

By dienbio

•Updated almost 7 years ago

Caddy WebServer From Techmaster

Image
0

200

dienbio/caddyalpine repository overview

⁠Hướng dẫn tự build một Docker image Caddy trên Alpine

Link đến slide trình bày⁠

Khi viết Dockerfile tôi đã tham khảo YobaSystems/Alpine-Caddy⁠

⁠Nghịch thử

⁠Viết script để tự động hoá docker build, docker run

Các file script rebuild, website, hostmd được viết để chạy bằng fish shell⁠. Bạn có thể chạy bằng bash shell bằng cách thay đổi dòng đầu shebang từ #!/usr/local/bin/fish sang #!/bin/bash

Build docker image sau đó, truy cập đến http://localhost⁠

$ ./rebuild

Host một web site tĩnh

$ ./website

Host một web site chứa markdown (thư mục md) sử dụng Caddy markdown plugin

$ ./hostmd
Tag summary
Recent tags
Content type
Image
Digest
Size
13 MB
Last updated
almost 7 years ago
docker pull dienbio/caddyalpine:latest