Download Dockerfile from NeoPy/hugging-c-ai: direct link, hf CLI and curl.
- Browser
- Download file 727 Bytes
-
https://huggingface.co/NeoPy/hugging-c-ai/resolve/main/Dockerfile
- Command line
-
hf download hf://NeoPy/hugging-c-ai/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/NeoPy/hugging-c-ai/resolve/main/Dockerfile
727 Bytes
| # HuggingFace Space Dockerfile for Hugging-c-ai | |
| # Builds the Next.js 16 app and serves it on port 7860. | |
| FROM node:20-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git openssl curl ca-certificates \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| COPY prisma.config.ts ./ | |
| COPY prisma ./prisma | |
| RUN npm ci --no-audit --no-fund || npm install --no-audit --no-fund | |
| COPY . . | |
| ENV DATABASE_URL="file:./dev.db" | |
| RUN npx prisma generate | |
| RUN npx prisma db push --accept-data-loss | |
| RUN npm run build | |
| ENV PORT=7860 | |
| ENV HOSTNAME=0.0.0.0 | |
| EXPOSE 7860 | |
| RUN useradd -m -u 1000 user | |
| RUN chown -R user:user /app | |
| USER user | |
| CMD ["npm", "run", "start", "--", "-p", "7860", "-H", "0.0.0.0"] | |