forked from openmcp-project/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
26 lines (24 loc) · 693 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
26 lines (24 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
version: "3"
tasks:
docker-dev:
desc: Run the Docusaurus dev server in Docker with live reload
cmds:
- |
docker run --rm -it \
-v "$(pwd):/workspace" \
-w /workspace \
-p 3000:3000 \
--user node \
node:25-alpine \
sh -c "npm ci && npm start -- --host 0.0.0.0"
docker-serve:
desc: Build and serve the production Docusaurus site in Docker
cmds:
- |
docker run --rm -it \
-v "$(pwd):/workspace" \
-w /workspace \
-p 3000:3000 \
--user node \
node:25-alpine \
sh -c "npm ci && npm run build && npm run serve -- --host 0.0.0.0"