Reubencf commited on
Commit
0a3a553
·
1 Parent(s): ee71bcc

Update Dockerfile: remove Python backend and old file references

Browse files

- Removed Python installation (no longer needed)
- Removed backend folder copying
- Removed requirements.txt reference
- Removed start-all.sh reference
- Simplified to pure Node.js/Next.js deployment
- Added /data/sessions folder creation

Files changed (1) hide show
  1. Dockerfile +1 -19
Dockerfile CHANGED
@@ -40,30 +40,12 @@ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
40
 
41
  # Create data directory for file uploads (Hugging Face persistent storage)
42
  # Note: /data is persistent in Hugging Face Spaces
43
- RUN mkdir -p /data/documents /data/public /data/exams /data/files
44
  RUN chown -R nextjs:nodejs /data
45
 
46
- # Install Python for MCP backend
47
- RUN apk add --no-cache python3 py3-pip
48
-
49
- # Copy Python backend
50
- COPY --chown=nextjs:nodejs backend /app/backend
51
- WORKDIR /app/backend
52
-
53
- # Install Python dependencies
54
- COPY requirements.txt .
55
- RUN pip3 install --no-cache-dir --break-system-packages -r requirements.txt
56
-
57
- WORKDIR /app
58
-
59
  # Switch to non-root user
60
  USER nextjs
61
 
62
- # Copy MCP server files
63
- COPY --from=builder --chown=nextjs:nodejs /app/mcp-server.js ./
64
- COPY --from=builder --chown=nextjs:nodejs /app/start-all.sh ./
65
- RUN chmod +x start-all.sh
66
-
67
  # Expose port 7860 for Hugging Face Spaces
68
  EXPOSE 7860
69
 
 
40
 
41
  # Create data directory for file uploads (Hugging Face persistent storage)
42
  # Note: /data is persistent in Hugging Face Spaces
43
+ RUN mkdir -p /data/documents /data/public /data/exams /data/files /data/sessions
44
  RUN chown -R nextjs:nodejs /data
45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  # Switch to non-root user
47
  USER nextjs
48
 
 
 
 
 
 
49
  # Expose port 7860 for Hugging Face Spaces
50
  EXPOSE 7860
51