个人网站
托管在静态端生成器:
先决条件
节点
Docker(可选)
使用docker进行构建,以替代在本地安装构建工具。
# Uses Docker image for the build tools
make docker-image # This to generate the image
make docker-build # This to compile the app and generate the `_site`
# Uses local tools
make prep
第1章:Docker
Dockerlàcáivẹogì? => lanềntảngcungcấpcáchđể建筑,部署运行中的dngdễdànghngnbằngcáchdửngcác容器。
Mộtsốhnhnghĩatrong Docker
1. Container: Khi đóng gói một ứng dụng & tất cả các thành phần cần thiết (như một số thư viện) tạo thành 1 gói (package)
开发者
运行应用
cp docker-compose.override.yml.example docker-compose.override.yml
# (optionally) edit app configuration in docker-compose.override.yml
docker-compose up -d --build
有用的命令
# format code
black --exclude migrations .
# execute a shell in the co
挑战声明
这项挑战涉及使用Docker封装一个名为Mkdocs( )的工具来生产和服务网站,因为我们不想在本地安装Mkdocs。 这个想法是:
● Create a Git project that builds a Docker image.
● This Docker image, when run, should accept a directory from your local
filesystem as input and use Mkdocs to produce and se