Spaces:
Sleeping
Sleeping
Download Dockerfile from egardner/question-explorer-api: direct link, hf CLI and curl.
- Browser
- Download file 536 Bytes
-
https://huggingface.co/spaces/egardner/question-explorer-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/egardner/question-explorer-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/egardner/question-explorer-api/resolve/main/Dockerfile
536 Bytes
| FROM node:20-slim | |
| WORKDIR /app | |
| # Copy package files | |
| COPY package*.json ./ | |
| # Install dependencies | |
| RUN npm install --production | |
| # Copy application code | |
| COPY . . | |
| # Create cache directory with proper permissions | |
| RUN mkdir -p /app/cache && chmod 777 /app/cache | |
| # Hugging Face Spaces uses port 7860 | |
| ENV PORT=7860 | |
| # Anthropic API key for question generation | |
| # Set this as a secret in your deployment platform (e.g., HF Spaces secrets) | |
| ENV ANTHROPIC_API_KEY="" | |
| # Expose the port | |
| EXPOSE 7860 | |
| # Start the server | |
| CMD ["node", "index.js"] | |