> For AI agents: the complete documentation index is available at https://www.tteam.icu/llms.txt, the full documentation bundle is available at https://www.tteam.icu/llms-full.txt.

# docker-static-website

`docker-static-website` 是一个体积很小的静态站点镜像，适合把前端构建后的 `dist` 目录快速打包成容器运行。

[开源地址](https://github.com/lipanski/docker-static-website)

## 构建镜像

把构建产物复制到镜像根目录即可。示例中默认 `./dist` 已经由前端项目构建完成。

```dockerfile
FROM registry.cn-hangzhou.aliyuncs.com/buyfakett/docker-static-website
COPY ./dist .
```

## 快速启动

```yml file="./website/docker-compose.yml" title="docker-compose.yml"
version: "3.9"
services:
  webserver:
    image: lipanski/docker-static-website:latest
    restart: always
    ports:
      - "3000:3000"
    volumes:
      - /some/local/path:/home/static
```
