question-explorer-api / Dockerfile
Eric Gardner
Use Claude API for question generation
ce30646
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"]