Spaces:
Sleeping
Sleeping
Download Dockerfile from Neon-coding/Db: direct link, hf CLI and curl.
- Browser
- Download file 504 Bytes
-
https://huggingface.co/spaces/Neon-coding/Db/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Neon-coding/Db/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Neon-coding/Db/resolve/main/Dockerfile
504 Bytes
| # NT DB — Dockerfile for Hugging Face Spaces | |
| FROM node:20-slim | |
| WORKDIR /app | |
| # Copy package files and install dependencies | |
| COPY package.json ./ | |
| RUN npm install --production | |
| # Copy source files | |
| COPY server.js ./ | |
| COPY api/ ./api/ | |
| # Persistent data lives at /data on HF Spaces | |
| # (mount a persistent disk volume at /data in your Space settings) | |
| ENV DB_DIR=/data/db | |
| ENV PORT=7860 | |
| # Create default db dir in case no persistent disk is mounted | |
| RUN mkdir -p /data/db | |
| EXPOSE 7860 | |
| CMD ["node", "server.js"] |