Preparado despliegue
This commit is contained in:
16
deployment/Dockerfile.dev
Normal file
16
deployment/Dockerfile.dev
Normal 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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user