Files
sf-sim/deployment/develop/docker/Dockerfile

25 lines
475 B
Docker
Raw Normal View History

2026-02-10 16:10:27 +01:00
# --- Release image ---
FROM node:22-alpine AS release
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
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}
2026-02-10 17:16:29 +01:00
ENTRYPOINT ["./entrypoint.sh"]