2026-02-10 16:10:27 +01:00
|
|
|
# --- Release image ---
|
|
|
|
|
FROM node:22-alpine AS release
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
COPY ./package.json ./
|
2026-02-11 17:44:44 +01:00
|
|
|
|
2026-02-11 17:52:22 +01:00
|
|
|
# Force node-modules linker (no .yarnrc.yml in build context)
|
|
|
|
|
RUN echo 'nodeLinker: node-modules' > .yarnrc.yml
|
|
|
|
|
|
2026-02-11 17:48:29 +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}
|
|
|
|
|
ENTRYPOINT ["./entrypoint.sh"]
|