Triviaverse / Dockerfile
Simeon Garratt
feat: remove Supabase, bundle questions locally, use JSON DB + API
ad111f4
Raw
History Blame Contribute Delete
573 Bytes
FROM node:22-alpine
WORKDIR /app
# Increase Node memory for build on constrained HF free tier
ENV NODE_OPTIONS="--max-old-space-size=1536"
COPY package.json package-lock.json ./
RUN npm ci --ignore-scripts
COPY . .
# The bundled questions are compiled into the build, no DB needed
RUN npm run build
# Copy static assets for standalone mode
RUN cp -r .next/static .next/standalone/.next/static
RUN if [ -d public ]; then cp -r public .next/standalone/public; fi
ENV PORT=7860
ENV NODE_OPTIONS=""
EXPOSE 7860
# start.sh runs the Next.js server
CMD ["sh", "start.sh"]