fase 3: Dockerfile multi-stage (node:22-alpine)
Build TS con devDeps y runtime solo con deps de produccion, USER node, healthcheck por proceso (deuda: anadir /healthz), secretos siempre por entorno/ficheros montados. Imagen verificada con docker build.
This commit is contained in:
parent
d1fc6798dc
commit
3596f7abed
2 changed files with 35 additions and 0 deletions
11
.dockerignore
Normal file
11
.dockerignore
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
node_modules
|
||||
dist
|
||||
test
|
||||
docs
|
||||
deploy
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
config.json
|
||||
*.log
|
||||
.git
|
||||
Loading…
Add table
Add a link
Reference in a new issue