diff --git a/.codepress/dev-server/Dockerfile.main b/.codepress/dev-server/Dockerfile.main new file mode 100644 index 0000000..2384159 --- /dev/null +++ b/.codepress/dev-server/Dockerfile.main @@ -0,0 +1,36 @@ +# Generated by CodePress bootstrap-dev-server. +# Dev-mode image for the "main" frontend (Live Dev Server). +# Edits are preserved, but running /bootstrap-dev-server again may overwrite them. +# +# Node 10 is required: node-sass 4.5.3 (a project devDependency) only builds +# on Node <=10. Upgrade node-sass to v8+ or switch to `sass` to use a modern base. +FROM node:10-buster-slim + +# System packages for native module compilation (node-sass requires python3, make, g++). +RUN apt-get update \ + && apt-get install -y --no-install-recommends python3 make g++ \ + && rm -rf /var/lib/apt/lists/* + +WORKDIR /app + +# Install deps from the lockfile in a cached layer. +COPY package.json package-lock.json ./ +RUN npm ci + +# Copy the rest of the repo (build context is the repo root). +COPY . . + +# HMR + bind config — values come from the runtime, never hardcoded. +# scripts/start.js reads HOST and PORT directly; HOSTNAME is the standard alias. +# CODEPRESS_HMR_* are consumed by the CodePress proxy runtime. +# The webpackHotDevClient connects to window.location automatically — no extra port config needed. +ENV HOSTNAME=0.0.0.0 \ + HOST=0.0.0.0 \ + PORT=3000 \ + CODEPRESS_HMR_CLIENT_PORT=443 \ + CODEPRESS_HMR_PROTOCOL=wss + +EXPOSE 3000 + +# Dev command (HMR on). scripts/start.js starts webpack-dev-server bound to HOST:PORT. +CMD ["npm", "start"] diff --git a/.codepress/dev-server/recipe.json b/.codepress/dev-server/recipe.json new file mode 100644 index 0000000..8138330 --- /dev/null +++ b/.codepress/dev-server/recipe.json @@ -0,0 +1,17 @@ +{ + "schema_version": 1, + "bootstrapped_at": "2026-06-16T05:50:00Z", + "discovery_branch": "codepress/codepress/bootstrap-dev-server-artifacts-509db372", + "frontends": [ + { + "label": "main", + "working_dir": "", + "dockerfile_path": ".codepress/dev-server/Dockerfile.main", + "dev_command": "npm start", + "framework": "cra", + "package_manager": "npm", + "dev_port": 3000, + "system_packages": ["python3", "make", "g++"] + } + ] +}