https://github.com/srect/readben_demo
静态文件服务器 demo
https://github.com/srect/readben_demo
Last synced: 28 days ago
JSON representation
静态文件服务器 demo
- Host: GitHub
- URL: https://github.com/srect/readben_demo
- Owner: sRect
- Created: 2023-01-17T08:28:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-18T09:18:27.000Z (over 3 years ago)
- Last Synced: 2025-01-02T15:45:23.478Z (over 1 year ago)
- Language: HTML
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Redbean in Docker Demo
> https://github.com/kissgyorgy/redbean-docker
轻量应用服务器,只有501kb
1. 构建镜像
```sh
docker build --build-arg ASSETS_DIR=something-else .
```
2. 多阶段构建
```dockerfile
FROM kissgyorgy/redbean-onbuild as build
FROM scratch
COPY --from=build /redbean.com /
CMD ["/redbean.com", "-vv", "-p", "80"]
```