19 lines
509 B
Docker
19 lines
509 B
Docker
# syntax=docker/dockerfile:1
|
|
# DEV image: source bind-mounted by compose, rsbuild dev server with HMR.
|
|
# node_modules lives in a named volume (see compose) so the host dir never
|
|
# shadows the container install. Build context = mcma-webui/.
|
|
FROM node:22-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json package-lock.json ./
|
|
RUN npm ci
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 3000
|
|
|
|
# host 0.0.0.0 + HMR client port come from env (RSBUILD_* in compose).
|
|
# `--open` is dropped on purpose: no browser in a container.
|
|
CMD ["npx", "rsbuild", "dev"]
|