fix(docker): use simpler single-stage Dockerfile

- Add Dockerfile.simple with single-stage build

- Update woodpecker to use Dockerfile.simple

- Remove multi-stage complexity
This commit is contained in:
Ashwin Kumar 2026-04-10 19:46:36 +02:00
parent addd36a869
commit e416f2fe8f
2 changed files with 32 additions and 1 deletions

View file

@ -8,7 +8,7 @@ steps:
settings:
registry: docker-registry.registry.svc.cluster.local:5000
repo: docker-registry.registry.svc.cluster.local:5000/nxtgauge-admin-solid
dockerfile: Dockerfile
dockerfile: Dockerfile.simple
tags:
- ${CI_COMMIT_SHA}
- latest

31
Dockerfile.simple Normal file
View file

@ -0,0 +1,31 @@
FROM node:20-slim
WORKDIR /app
# Skip browser downloads
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
ENV CYPRESS_INSTALL_BINARY=0
# Install dependencies
RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*
# 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"]