Update build pipeline to reduce image size

This commit is contained in:
2026-08-29 17:56:06 +00:00
parent c65bdf71ae
commit b713c75213
8 changed files with 140 additions and 12 deletions
+20 -11
View File
@@ -2,19 +2,29 @@
This website is built using [Astro](https://astro.build)
## CI
For building the image on the server, the command to use is
```bash
devenv tasks run news:build
```
After that, a Caddy image will serve the files generated in the `dist` directory
## 🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
| :--------------------- | :------------------------------------------------- |
| `npm i -g yarn` | Installs yarn (if needed) |
| `yarn` | Installs dependencies |
| `yarn dev` | Starts local dev server at `localhost:3000` |
| `yarn build` | Build your production site to `./dist/` |
| `yarn preview` | Preview your build locally, before deploying |
| `yarn astro ...` | Run CLI commands like `astro add`, `astro preview` |
| `yarn astro --help` | Get help using the Astro CLI |
| Command | Action |
| :------------------ | :------------------------------------------------- |
| `npm i -g yarn` | Installs yarn (if needed) |
| `yarn` | Installs dependencies |
| `yarn dev` | Starts local dev server at `localhost:3000` |
| `yarn build` | Build your production site to `./dist/` |
| `yarn preview` | Preview your build locally, before deploying |
| `yarn astro ...` | Run CLI commands like `astro add`, `astro preview` |
| `yarn astro --help` | Get help using the Astro CLI |
## 🚀 Project Structure
@@ -40,7 +50,6 @@ There's nothing special about `src/components/`, but that's where we like to put
Any static assets, like images, can be placed in the `public/` directory.
## 👀 Want to learn more?
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).