Files
astro-website/scripts/refresh.sh
Santhosh Janardhanan e2ef436d34
Some checks failed
ci / site (push) Has been cancelled
publish-image / publish (push) Has been cancelled
refresh content
2026-02-10 05:06:24 -05:00

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