Skip to content

Commit 9e22429

Browse files
committed
Compile statis resources using docker
1 parent ce54bd6 commit 9e22429

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# 使用 docker 编译静态资源
2+
3+
```bash
4+
docker run -it --rm --name docker-node-compile-assets -v "$PWD":/home/node/app -w /home/node/app node:16.19 yarn && yarn prod
5+
```
6+
7+
- `--rm` 容器退出时自动移除
8+
- `-v` 挂载目录
9+
- `-w` 工作目录

0 commit comments

Comments
 (0)