Spaces:
Sleeping
Sleeping
File size: 536 Bytes
cdc50ff ce30646 cdc50ff |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
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"]
|