Yujie Chen commited on
Commit
2b05804
·
1 Parent(s): 871160f

Update Space

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -3
  2. README.md +19 -9
Dockerfile CHANGED
@@ -2,8 +2,6 @@
2
  FROM python:3.11-slim
3
  WORKDIR /app
4
  ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
5
- # Set a strong default secret key for Flask session (override in HF Spaces if needed)
6
- ENV SECRET_KEY=hf-minerva-lite-2026
7
  # Install dependencies from requirements.txt
8
  COPY requirements.txt ./
9
  RUN pip install --no-cache-dir -r requirements.txt
@@ -13,4 +11,4 @@ COPY . .
13
  EXPOSE 7860
14
  # Use gunicorn for production WSGI server
15
  ENV PORT=7860
16
- CMD gunicorn -b 0.0.0.0:$PORT app:APP
 
2
  FROM python:3.11-slim
3
  WORKDIR /app
4
  ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
 
 
5
  # Install dependencies from requirements.txt
6
  COPY requirements.txt ./
7
  RUN pip install --no-cache-dir -r requirements.txt
 
11
  EXPOSE 7860
12
  # Use gunicorn for production WSGI server
13
  ENV PORT=7860
14
+ CMD ["sh", "-c", "gunicorn -b 0.0.0.0:${PORT} app:APP"]
README.md CHANGED
@@ -10,25 +10,35 @@ pinned: false
10
 
11
  # Minerva Lite: Registration
12
 
13
- Minerva Lite is a simplified web-based simulation of course registration. It is designed for demonstration, testing, and educational purposes.
 
 
 
 
 
 
 
 
 
 
 
14
 
15
  ## Key Features
16
 
17
  - **Term Selection:**
18
- - Choose from multiple academic terms (Fall 2025, Winter 2026, Summer 2026, Fall 2026).
19
 
20
  - **Course Search:**
21
- - Search for courses by subject, number, title, or campus.
22
- - View available courses for the selected term, including seat availability and schedule details.
23
 
24
  - **Add/Drop Courses:**
25
- - Register for courses by entering a CRN (Course Reference Number).
26
- - Drop registered courses.
27
- - Registration is simulated for a single demo student.
28
 
29
  - **Student Schedule:**
30
- - View your current course registrations for the selected term.
31
- - See a weekly grid view of your schedule, with time blocks for each class.
32
 
33
  - **Accounts:**
34
  - View a placeholder page for tuition fee and legal status (for demonstration).
 
10
 
11
  # Minerva Lite: Registration
12
 
13
+ Minerva Lite is a simplified web-based simulation of course registration. It is designed for demonstration, testing and educational purposes.
14
+
15
+ ## Demo
16
+
17
+ - **Online demo (Hugging Face):** https://huggingface.co/spaces/Yuj7/minerva-lite
18
+ - **Docker image (Docker Hub):** https://hub.docker.com/r/yujc7/minerva-lite
19
+
20
+ ## Run with Docker
21
+
22
+ ```bash
23
+ docker run --rm -p 7860:7860 yujc7/minerva-lite:latest
24
+ ```
25
 
26
  ## Key Features
27
 
28
  - **Term Selection:**
29
+ - Choose from multiple academic terms (Fall 2025, Winter 2026, Summer 2026)
30
 
31
  - **Course Search:**
32
+ - Search for courses by subject, number, title, or campus
33
+ - View available courses for the selected term, including seat availability and schedule details
34
 
35
  - **Add/Drop Courses:**
36
+ - Register for courses by entering a CRN (Course Reference Number)
37
+ - Drop registered courses
 
38
 
39
  - **Student Schedule:**
40
+ - View your current course registrations for the selected term
41
+ - See a weekly grid view of your schedule, with time blocks for each class
42
 
43
  - **Accounts:**
44
  - View a placeholder page for tuition fee and legal status (for demonstration).