nxtgauge-admin-solid/Dockerfile.simple
Ashwin Kumar e416f2fe8f fix(docker): use simpler single-stage Dockerfile
- Add Dockerfile.simple with single-stage build

- Update woodpecker to use Dockerfile.simple

- Remove multi-stage complexity
2026-04-10 19:46:36 +02:00

31 lines
577 B
Text

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"]