mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-18 21:38:58 +00:00
Coolify Configuration
Check nuxt.config.js.
Dockerfile
- Create a
Dockerfilein the root of your project with the following content:
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;"]
- Select
Dockerfileas theBuild Packin Coolify. - Set
Ports Exposedto80.
Nixpacks
- Create a
nixpacks.tomlfile in the root of your project with the following content:
[phases.setup]
nixpkgsArchive = '51ad838b03a05b1de6f9f2a0fffecee64a9788ee'
- Select
Nixpacksas theBuild Packin Coolify. - Turn on
Is it a static site?. - Set
Publish Directoryto/.output/public.