Spaces:
Running
Running
Download Dockerfile from Jacksuyu/demandsolution-codex: direct link, hf CLI and curl.
- Browser
- Download file 893 Bytes
-
https://huggingface.co/spaces/Jacksuyu/demandsolution-codex/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Jacksuyu/demandsolution-codex/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Jacksuyu/demandsolution-codex/resolve/main/Dockerfile
893 Bytes
| FROM node:20-bookworm-slim | |
| RUN apt-get update -y \ | |
| && apt-get install -y --no-install-recommends openssl ca-certificates \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY package.json package-lock.json ./ | |
| RUN npm ci | |
| COPY . . | |
| ENV OPENAI_API_KEY="" | |
| ENV OPENAI_MODEL="gpt-4.1-mini" | |
| ENV AUTH_SECRET="change-me-in-production" | |
| ENV AUTH_GOOGLE_ID="" | |
| ENV AUTH_GOOGLE_SECRET="" | |
| ENV AUTH_URL="https://jacksuyu-demandsolution-codex.hf.space" | |
| ENV NEXTAUTH_URL="https://jacksuyu-demandsolution-codex.hf.space" | |
| ENV AUTH_TRUST_HOST="true" | |
| ENV NODE_ENV=production | |
| ENV PORT=7860 | |
| RUN npm run prisma:generate && npm run build | |
| EXPOSE 7860 | |
| CMD ["sh", "-lc", "if [ -z \"$DATABASE_URL\" ]; then echo 'DATABASE_URL is required (set it in HF secrets, e.g. Supabase Postgres URL)'; exit 1; fi; npx prisma db push --skip-generate && node scripts/cleanup_idea_copy.js && npm start -- -H 0.0.0.0 -p ${PORT}"] | |