nxtgauge-admin-solid/Dockerfile.simple
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

31 lines
558 B
Text

FROM registry.nxtgauge.com/node:20-alpine
WORKDIR /app
# Skip browser downloads
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
ENV CYPRESS_INSTALL_BINARY=0
# Install build dependencies
RUN apk add --no-cache python3 make g++
# Copy package files
COPY package*.json ./
RUN npm ci --legacy-peer-deps
# Copy all source files
COPY . .
# Create env file
RUN echo "GATEWAY_URL=http://localhost:9100" > .env
# Build
ENV NODE_OPTIONS="--max-old-space-size=4096"
RUN npm run build
ENV PORT=9202
ENV HOST=0.0.0.0
EXPOSE 9102
CMD ["node", ".output/server/index.mjs"]