Leon4gr45/builder
0
1FROM node:20-alpine2 3# Ensure Next.js native binaries work on Alpine4RUN apk add --no-cache libc6-compat5 6ENV NODE_ENV=production \7 NEXT_TELEMETRY_DISABLED=1 \8 PORT=7860 \9 NEXT_PUBLIC_SERVER_MODE=false10 11WORKDIR /app12 13# Install deps with cache-friendly layering14COPY package.json package-lock.json ./15RUN npm ci --include=dev16 17# Install freebuff globally18RUN npm install -g freebuff19 20# Copy source and build21COPY . .22RUN npm run build23 24EXPOSE 786025# Run start script that launches freebuff in background and starts app26CMD ["/bin/sh", "start.sh"]27 