Commit graph

16 commits

Author SHA1 Message Date
Ashwin Kumar Sivakumar
8c03cd0eac fix(docker): don't set NODE_ENV=production before npm ci in builder stage
All checks were successful
build-and-release / build (push) Successful in 1m34s
With NODE_ENV=production set, npm ci skips devDependencies - but
npm run build (vinxi/vite under the hood) needs them, failing with
ERR_MODULE_NOT_FOUND for 'vite'. This broke every build regardless
of what changed in the app itself, including the innocuous waitlist
page added in 26667c7. Pre-existing bug, not introduced by that
commit - confirmed via git log that the NODE_ENV=production line
predates it.

Moved NODE_ENV=production to the runtime stage only, where it
actually matters (affects the running server, not the build tooling).
Added --include=dev to npm ci for defense in depth if NODE_ENV ever
gets reintroduced in the builder stage.

Verified with a local  - completes
successfully now.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-14 04:15:32 +05:30
Ashwin Kumar Sivakumar
d1db169162 fix(admin-auth): read GATEWAY_URL from process.env instead of build-time Vite var
All checks were successful
build-and-release / build (push) Successful in 1m44s
Server-side gateway proxy (login, forgot-password, reset-password, all
/api/admin/* and /api/gateway/* calls) was reading import.meta.env.VITE_GATEWAY_URL,
which Vite only inlines at build time. The Dockerfile wrote GATEWAY_URL (no VITE_
prefix, and localhost besides) to .env at build time, so the var was never picked
up and the fallback http://localhost:9100 got baked into the server bundle
permanently — unreachable inside the pod, causing every admin auth call to 502
regardless of the correct GATEWAY_URL already set in the k8s ConfigMap.

Switch to process.env.GATEWAY_URL, read at runtime like the rest of the server
config already is.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-18 22:23:19 +05:30
Ashwin Kumar Sivakumar
e78b7c2642 fix: Update Dockerfile to use ci.nxtgauge.com registry
Some checks failed
build-and-release / build (push) Failing after 1m3s
2026-07-08 03:37:18 +05:30
Ashwin Kumar Sivakumar
4623d7c371 Update Dockerfile 2026-07-02 06:51:03 +05:30
Ashwin Kumar Sivakumar
7dfa08f148 ci: deploy admin via github actions and ghcr 2026-06-14 22:48:56 +05:30
Tracewebstudio Dev
a13dce546d fix(ci): use internal registry for node:20-alpine base image
- Change FROM node:20-alpine to FROM registry.nxtgauge.com/node:20-alpine
- Update both Dockerfile and Dockerfile.simple
- Fixes Docker Hub rate limiting errors in Woodpecker builds
2026-04-16 19:30:32 +02:00
Ashwin Kumar
addd36a869 fix(docker): create .env file in Dockerfile instead of copying
- Create .env file with RUN echo instead of COPY

- .env is in .gitignore so cannot be copied
2026-04-10 19:37:27 +02:00
Ashwin Kumar
2042003949 fix(docker): add .env file and GATEWAY_URL for build
- Copy .env file before npm install

- Set GATEWAY_URL env var

- Use npm ci instead of npm install
2026-04-10 19:22:37 +02:00
Ashwin Kumar
819ffef722 fix(docker): revert to node:20-slim with 3GB memory
- Use node:20-slim for builder stage (better memory handling)

- Keep node:20-alpine for runtime (smaller image)

- Increase memory to 3072MB for build
2026-04-10 18:11:45 +02:00
Ashwin Kumar
ff2c2291cf fix(docker): use Alpine and reduce memory for build
- Switch from node:20-slim to node:20-alpine for smaller image

- Reduce NODE_OPTIONS memory from 4096 to 2048

- Use Alpine apk instead of apt-get
2026-04-10 17:48:36 +02:00
Ashwin Kumar
1c94f97d11 dashboard implementation 2026-04-10 01:17:00 +02:00
Ashwin Kumar
4103dd6468 fix: install python3/make/g++ for native npm package builds 2026-04-09 03:20:26 +02:00
Ashwin Kumar
5038f28086 fix: use node:20-slim builder to fix Rollup musl/glibc native binary issue 2026-04-09 02:16:39 +02:00
Ashwin Kumar
2d163678e6 fix: increase Node memory and skip scripts in Docker build 2026-04-09 02:08:01 +02:00
Ashwin Kumar
0abcc6e07c fix: use npm install --legacy-peer-deps in Docker build 2026-04-09 01:19:47 +02:00
Ashwin Kumar
8d1aeafbd1 ci: add Woodpecker CI pipeline and Dockerfile for containerized deployment
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-09 00:09:03 +02:00