项目
在 GitHub 查看
kissgyorgy/redbean-docker
关于
基于 "scratch" 容器的 redbean Docker 镜像。
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Redbean in Docker
The smallest possible web server in Docker!
Built from Redbean: https://redbean.dev/, a single-file distributable web server.
The final container takes only 501 kB:
$ docker images redbean-static
REPOSITORY TAG IMAGE ID CREATED SIZE
redbean-static latest 814da89a2fa7 16 minutes ago 501 kB
or just 186 kB if you use the tinylinux version of Redbean:
$ docker images redbean-tinylinux
REPOSITORY TAG IMAGE ID CREATED SIZE
redbean-tinylinux latest 0b98596e96d8 2 seconds ago 186 kB
Examples
There are a couple of example Dockerfiles in this repo if you want to build it yourself:
- Dockerfile-multistage of how to produce a container from "scratch"
- Dockerfile-tinylinux for the world record small version
- Dockerfile-onbuild if you just want a scratch container
Onbuild image
The kissgyorgy/redbean-onbuild image is not suitable to use by itself, you can build your own image with it:
Put your static files in the
assetsdirectory or set your own directory name with:docker build --build-arg ASSETS_DIR=something-else .build a multi-stage Docker image with a
Dockerfilelike this:FROM kissgyorgy/redbean-onbuild as build FROM scratch COPY --from=build /redbean.com / CMD ["/redbean.com", "-vv", "-p", "80"]
Now your image includes redbean with all your static files in it and ready to run!
探索相关项目
加载中…