Containerizacion completa

This commit is contained in:
2025-12-30 16:02:24 +01:00
parent f4bd501267
commit 9d1978f62f
12 changed files with 97 additions and 62 deletions

16
deployment/Dockerfile.dev Normal file
View File

@@ -0,0 +1,16 @@
# stage base para coordinar las fases de build y ejecucion
FROM node:22-alpine AS base
WORKDIR /usr/local/app
# compilacion del ts -> js
FROM base AS backend
WORKDIR /usr/local/app
EXPOSE ${PORT}
COPY package*.json ./
# copia el codigo en general
COPY .tsconfig*.json ./
COPY ./src ./src
RUN npm i
CMD ["npm", "run", "dev"]