Files
mcma-webui/dockerfiles/Dockerfile.dev
T
Senko-san a2fa425853
Docker Build & Publish / build-and-push (push) Failing after 1m24s
Docker Build & Publish / Prune old image versions (push) Has been skipped
feat: build
2026-06-07 21:11:50 +03:00

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"]