From 904121e8297e0dad69d4de576a163357aa22aa2e Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 2 Feb 2026 02:48:54 +0000 Subject: [PATCH] Case 4641 AI era starts now --- ayanova/.nvmrc | 1 + ayanova/Dockerfile.frontend | 45 +++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 ayanova/.nvmrc create mode 100644 ayanova/Dockerfile.frontend diff --git a/ayanova/.nvmrc b/ayanova/.nvmrc new file mode 100644 index 00000000..d53a7e06 --- /dev/null +++ b/ayanova/.nvmrc @@ -0,0 +1 @@ +12.22.9 diff --git a/ayanova/Dockerfile.frontend b/ayanova/Dockerfile.frontend new file mode 100644 index 00000000..e532daea --- /dev/null +++ b/ayanova/Dockerfile.frontend @@ -0,0 +1,45 @@ +# AyaNova v8 Frontend Build Environment +# +# This Dockerfile creates a reproducible build environment for the Vue.js frontend. +# It uses the exact Node.js version (12.22.9) that the project was developed with. +# +# Usage: +# Build the image: +# docker build -f Dockerfile.frontend -t ayanova-frontend-build . +# +# Run a build (mount your source code): +# docker run --rm -v "c:/data/code/raven-client/ayanova:/app" -v "c:/data/code/raven/server/AyaNova/wwwroot:/output" ayanova-frontend-build +# +# Interactive shell for debugging: +# docker run --rm -it -v "c:/data/code/raven-client/ayanova:/app" ayanova-frontend-build /bin/bash +# + +FROM node:12.22.9-bullseye + +# Install build tools needed for native modules (fibers) +RUN apt-get update && apt-get install -y \ + python3 \ + make \ + g++ \ + && rm -rf /var/lib/apt/lists/* + +# Set working directory +WORKDIR /app + +# Copy package files first (for better layer caching) +# When running with volume mounts, these will be overwritten +COPY package*.json ./ + +# Install dependencies +# Using --legacy-peer-deps because some packages have outdated peer dependencies +RUN npm ci --legacy-peer-deps || npm install --legacy-peer-deps + +# Copy the rest of the source code +# (This layer is skipped when using volume mounts) +COPY . . + +# Default command: run the production build +CMD ["npm", "run", "build"] + +# To copy output to host, the build script or docker run command should handle it +# Example: docker run ... && docker cp container:/app/dist ./dist