Preparado despliegue

This commit is contained in:
2026-03-02 15:07:30 +01:00
parent 3be2b8f20d
commit f57309b06a
3 changed files with 16 additions and 48 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
COPY ./package.json ./yarn.lock ./
RUN corepack enable && \
corepack prepare yarn@4.12.0 --activate
# copia el codigo en general
COPY tsconfig*.json ./
COPY ./packages ./packages
COPY .env* ./
COPY ./.yarnrc.yml ./
RUN yarn install && yarn cache clean
EXPOSE ${PORT}
CMD ["yarn", "run", "dev"]