From faa2c567acd1b6c8ce9c1ac3149c4c8a92ea0345 Mon Sep 17 00:00:00 2001 From: ccbikai Date: Mon, 2 Sep 2024 20:31:45 +0800 Subject: [PATCH] feat: add Docker deployment instructions Enhance README with Docker deployment steps for easier setup and scalability. --- README.md | 7 +++++++ README.zh-cn.md | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/README.md b/README.md index 6aaf595..2885c93 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,13 @@ For detailed tutorials, see [Deploy your Astro site](https://docs.astro.build/en ## 🏗️ Deployment +### Docker + +1. `docker pull ghcr.io/ccbikai/broadcastchannel:main` +2. `docker run -d --name broadcastchannel -p 4321:4321 -e CHANNEL=miantiao_me ghcr.io/ccbikai/broadcastchannel:main` + +### Serverless + 1. [Fork](https://github.com/ccbikai/BroadcastChannel/fork) this project to your GitHub 2. Create a project on Cloudflare/Netlify/Vercel 3. Select the `BroadcastChannel` project and the `Astro` framework diff --git a/README.zh-cn.md b/README.zh-cn.md index ee0d293..c6c338b 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -62,6 +62,13 @@ ## 🏗️ 部署 +### Docker + +1. `docker pull ghcr.io/ccbikai/broadcastchannel:main` +2. `docker run -d --name broadcastchannel -p 4321:4321 -e CHANNEL=miantiao_me ghcr.io/ccbikai/broadcastchannel:main` + +### Serverless + 1. [Fork](https://github.com/ccbikai/BroadcastChannel/fork) 此项目到你 GitHub 2. 在 Cloudflare/Netlify/Vercel 创建项目 3. 选择 `BroadcastChannel` 项目和 `Astro` 框架