FROM node:22-bookworm-slim RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates && rm -rf /var/lib/apt/lists/* WORKDIR /app RUN git clone --depth 1 https://github.com/PISSARAW/GenOSWork.git . RUN npm ci ENV NODE_ENV=production ENV NEXT_TELEMETRY_DISABLED=1 ENV PORT=7860 ENV HOSTNAME=0.0.0.0 RUN npm run build EXPOSE 7860 CMD ["npm", "run", "start"]