ajout git ignore pour decharger la couche build et modification nixpacks
This commit is contained in:
5
.dockerignore
Normal file
5
.dockerignore
Normal file
@@ -0,0 +1,5 @@
|
||||
node_modules
|
||||
.next
|
||||
.git
|
||||
.github
|
||||
*.log
|
||||
BIN
.next/dev/cache/turbopack/23c46498/CURRENT
vendored
BIN
.next/dev/cache/turbopack/23c46498/CURRENT
vendored
Binary file not shown.
26
.next/dev/cache/turbopack/23c46498/LOG
vendored
26
.next/dev/cache/turbopack/23c46498/LOG
vendored
@@ -5802,3 +5802,29 @@ FAM | META SEQ | SST SEQ | RANGE
|
||||
0 | 00013259 | 00013258 SST | [=======================================================================] | 3aefa6fd5cf2deb4-f42f94001fcb5351 (0 MiB, fresh)
|
||||
1 | 00013260 | 00013256 SST | O | b294a4237ccef201-b294a4237ccef201 (0 MiB, fresh)
|
||||
2 | 00013261 | 00013257 SST | O | b294a4237ccef201-b294a4237ccef201 (0 MiB, fresh)
|
||||
Time 2026-03-05T08:33:42.5673245Z
|
||||
Commit 00013363 4 keys in 17ms 924µs 500ns
|
||||
FAM | META SEQ | SST SEQ | RANGE
|
||||
0 | 00013361 | 00013360 SST | [=======================================================================] | 3aefa6fd5cf2deb4-f42f94001fcb5351 (0 MiB, fresh)
|
||||
1 | 00013362 | 00013358 SST | O | 3ffdfb3b7d50fcf1-3ffdfb3b7d50fcf1 (0 MiB, fresh)
|
||||
2 | 00013363 | 00013359 SST | O | 3ffdfb3b7d50fcf1-3ffdfb3b7d50fcf1 (0 MiB, fresh)
|
||||
Time 2026-03-05T08:34:48.2325117Z
|
||||
Commit 00013369 4578 keys in 12ms 708µs 200ns
|
||||
FAM | META SEQ | SST SEQ | RANGE
|
||||
0 | 00013367 | 00013366 SST | [=======================================================================] | 3aefa6fd5cf2deb4-f42f94001fcb5351 (0 MiB, fresh)
|
||||
2 | 00013368 | 00013364 SST | [==================================================================================================] | 000d168784b3a904-ffd966598c8595fa (9 MiB, fresh)
|
||||
1 | 00013369 | 00013365 SST | [==================================================================================================] | 000d168784b3a904-fff187cd7cce0e80 (2 MiB, fresh)
|
||||
Time 2026-03-05T08:34:52.2720066Z
|
||||
Commit 00013375 4 keys in 18ms 515µs 200ns
|
||||
FAM | META SEQ | SST SEQ | RANGE
|
||||
0 | 00013373 | 00013372 SST | [=======================================================================] | 3aefa6fd5cf2deb4-f42f94001fcb5351 (0 MiB, fresh)
|
||||
1 | 00013374 | 00013370 SST | O | 3ffdfb3b7d50fcf1-3ffdfb3b7d50fcf1 (0 MiB, fresh)
|
||||
2 | 00013375 | 00013371 SST | O | 3ffdfb3b7d50fcf1-3ffdfb3b7d50fcf1 (0 MiB, fresh)
|
||||
Time 2026-03-05T08:35:14.3372491Z
|
||||
Commit 00013385 14 keys in 11ms 225µs 100ns
|
||||
FAM | META SEQ | SST SEQ | RANGE
|
||||
0 | 00013381 | 00013378 SST | [=======================================================================] | 3aefa6fd5cf2deb4-f42f94001fcb5351 (0 MiB, fresh)
|
||||
1 | 00013382 | 00013376 SST | [================================================================================] | 20ff59e1772d8bcf-ef311d8b965c9633 (0 MiB, fresh)
|
||||
2 | 00013383 | 00013377 SST | [================================================================================] | 20ff59e1772d8bcf-ef311d8b965c9633 (0 MiB, fresh)
|
||||
4 | 00013384 | 00013380 SST | O | 20ff59e1772d8bcf-20ff59e1772d8bcf (0 MiB, fresh)
|
||||
3 | 00013385 | 00013379 SST | O | 7d92be8ee8c5a114-7d92be8ee8c5a114 (0 MiB, fresh)
|
||||
|
||||
@@ -2,18 +2,21 @@
|
||||
nixPkgs = ["nodejs_22", "openssl"]
|
||||
|
||||
[phases.install]
|
||||
cmds = ["npm install"]
|
||||
# On installe tout pour le build
|
||||
cmds = ["npm ci"]
|
||||
|
||||
[phases.build]
|
||||
# On build, on prépare le standalone, et on nettoie TOUT le reste
|
||||
# Le "&&" est important pour que tout se passe dans la même couche logicielle
|
||||
cmds = [
|
||||
"npm run build",
|
||||
# On prépare le standalone avec ses assets
|
||||
"cp -r public .next/standalone/public",
|
||||
"cp -r .next/static .next/standalone/.next/static",
|
||||
# NETTOYAGE RADICAL : on supprime tout sauf le standalone
|
||||
"find . -maxdepth 1 ! -name '.next' ! -name '.' -exec rm -rf {} +"
|
||||
"echo 'Nettoyage en cours...'",
|
||||
"rm -rf node_modules",
|
||||
"rm -rf .next/cache"
|
||||
]
|
||||
|
||||
[start]
|
||||
# On lance le serveur depuis le dossier standalone
|
||||
# On pointe vers le serveur optimisé
|
||||
cmd = "node .next/standalone/server.js"
|
||||
Reference in New Issue
Block a user