Personal blog built with Astro.
Two main ways to deploy:
- Manually build with
npm run build
and then copy the contents of/dist
- Use docker
To use docker:
- Build docker image, run
docker build -t <your-image-name> .
- Run the image locally, or deploy to a platform
- To run docker container locally, run
docker run -p <local-port>:<container-port> <your-image-name>
- To run docker container locally, run
The Dockerfile will spin up a Nginx server that exposes port 8080 (container-port).
This section is just notes for myself.
To update Astro, run npm install astro@latest
To update Preact integration, run npm install @astrojs/preact@latest