7 lines
377 B
Bash
7 lines
377 B
Bash
#!/usr/bin/env sh
|
|
|
|
## Fetch content, build the image, clear the cache and restart the container
|
|
docker run -it -v $(pwd)/site:/usr/src/app -w /usr/src/app node:24-alpine npm run fetch-content
|
|
docker build --build-arg PUBLIC_ENABLE_SW=true -t fast-website:local .
|
|
docker run -it -v $(pwd)/site:/usr/src/app -w /usr/src/app node:24-alpine npm run cache:clear
|
|
docker compose up -d |