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
This commit is contained in:
Tracewebstudio Dev 2026-04-16 19:30:32 +02:00
parent 10c7ba0934
commit a13dce546d
3 changed files with 37 additions and 2 deletions

View file

@ -27,7 +27,7 @@ ENV NODE_OPTIONS="--max-old-space-size=4096"
RUN npm run build
# Runtime stage
FROM node:20-alpine
FROM registry.nxtgauge.com/node:20-alpine
WORKDIR /app
# Copy built output

View file

@ -1,4 +1,4 @@
FROM node:20-alpine
FROM registry.nxtgauge.com/node:20-alpine
WORKDIR /app

35
screenshot.ts Normal file
View file

@ -0,0 +1,35 @@
import { chromium } from 'playwright';
async function takeNxtgaugeScreenshot() {
const browser = await chromium.launch({ headless: true });
const page = await browser.newPage();
page.setViewportSize({ width: 1440, height: 900 });
console.log('Navigating to nxtgauge admin...');
await page.goto('http://localhost:3000/admin', { waitUntil: 'load' });
await page.waitForTimeout(5000);
// Take screenshot
console.log('Taking screenshot...');
await page.screenshot({ path: '/tmp/nxtgauge-admin.png', fullPage: true });
// Get sidebar structure info
const sidebarInfo = await page.evaluate(() => {
const sidebar = document.querySelector('aside');
if (sidebar) {
const styles = window.getComputedStyle(sidebar);
return {
width: styles.width,
background: styles.background,
borderRight: styles.borderRight,
};
}
return 'not found';
});
console.log('Sidebar styles:', sidebarInfo);
await browser.close();
console.log('Screenshot saved');
}
takeNxtgaugeScreenshot().catch(console.error);