This commit is contained in:
@@ -5,7 +5,7 @@ ENV PATH /app/node_modules/.bin:$PATH
|
||||
|
||||
# On copie tout, on installe tout, on build tout au même endroit
|
||||
COPY . .
|
||||
RUN npm install
|
||||
RUN npm ci
|
||||
RUN npx prisma generate
|
||||
RUN npm run build
|
||||
|
||||
|
||||
2
next-env.d.ts
vendored
2
next-env.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
/// <reference types="next" />
|
||||
/// <reference types="next/image-types/global" />
|
||||
import "./.next/dev/types/routes.d.ts";
|
||||
import "./.next/types/routes.d.ts";
|
||||
|
||||
// NOTE: This file should not be edited
|
||||
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
[phases.setup]
|
||||
nixPkgs = ["nodejs_23", "openssl"]
|
||||
nixPkgs = ["nodejs_22", "openssl"]
|
||||
|
||||
[phases.install]
|
||||
cmds = ["npm ci"]
|
||||
|
||||
[phases.build]
|
||||
cmds = ["npm install", "npx prisma generate", "npm run build"]
|
||||
cmds = ["npx prisma generate", "npm run build"]
|
||||
|
||||
[start]
|
||||
# Exécute prisma db push au runtime (démarrage du conteneur)
|
||||
cmd = "npx prisma db push --accept-data-loss && npm start"
|
||||
cmd = "npm start"
|
||||
|
||||
Reference in New Issue
Block a user