chore: update nuxt examples

This commit is contained in:
Cinzya
2025-12-28 19:11:25 +01:00
parent be12308526
commit 55fe4b24cf
25 changed files with 12333 additions and 11274 deletions

View File

@@ -2,6 +2,37 @@
Check [nuxt.config.js](./nuxt.config.js).
1. Use `Nixpacks`.
2. Turn on `Is it a static site?`.
## Dockerfile
1. Create a `Dockerfile` in the root of your project with the following content:
```Dockerfile
FROM node:24 AS build
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm ci
COPY . .
RUN npm run generate
FROM nginx
COPY --from=build /app/.output/public /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
```
2. Select `Dockerfile` as the `Build Pack` in Coolify.
3. Set `Ports Exposed` to `80`.
## Nixpacks
1. Create a `nixpacks.toml` file in the root of your project with the following content:
```toml
[phases.setup]
nixpkgsArchive = '51ad838b03a05b1de6f9f2a0fffecee64a9788ee'
aptPkgs = ["openssh-client"]
```
2. Select `Nixpacks` as the `Build Pack` in Coolify.
3. Turn on `Is it a static site?`.
4. Set `Publish Directory` to `/.output/public`.