2026-02-10 16:10:27 +01:00
|
|
|
# --- Release image ---
|
|
|
|
|
FROM node:22-alpine AS release
|
2026-02-23 12:04:21 +01:00
|
|
|
RUN apk --no-cache add git
|
2026-02-10 16:10:27 +01:00
|
|
|
WORKDIR /home/node/app
|
2026-02-10 17:16:29 +01:00
|
|
|
|
2026-02-11 17:48:29 +01:00
|
|
|
RUN corepack enable
|
|
|
|
|
|
2026-02-10 17:16:29 +01:00
|
|
|
COPY ./dist/packages ./packages
|
2026-03-10 10:42:32 +01:00
|
|
|
COPY ./.yarnrc.yml ./
|
2026-03-11 12:31:17 +01:00
|
|
|
COPY ./docs ./docs
|
2026-04-09 12:48:36 +02:00
|
|
|
# Para las migraciones
|
|
|
|
|
COPY ./deployment ./deployment
|
2026-02-10 17:16:29 +01:00
|
|
|
|
|
|
|
|
COPY ./package.json ./
|
2026-02-11 17:44:44 +01:00
|
|
|
|
2026-03-02 17:19:07 +01:00
|
|
|
RUN yarn install
|
2026-02-10 17:16:29 +01:00
|
|
|
|
2026-02-11 17:56:40 +01:00
|
|
|
RUN mkdir -p dist && ln -sf ../packages dist/packages
|
|
|
|
|
|
2026-02-10 17:16:29 +01:00
|
|
|
COPY ./entrypoint.sh ./
|
|
|
|
|
RUN chmod +x entrypoint.sh
|
|
|
|
|
|
|
|
|
|
EXPOSE ${PORT:-3000}
|
2026-02-20 10:47:28 +01:00
|
|
|
|
2026-02-10 17:16:29 +01:00
|
|
|
ENTRYPOINT ["./entrypoint.sh"]
|