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