james-d-taboola commited on
Commit
9e6401e
·
1 Parent(s): 4018140

chore: add docker

Browse files
Files changed (3) hide show
  1. .dockerignore +15 -0
  2. Dockerfile +29 -0
  3. README.md +11 -0
.dockerignore ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ node_modules
2
+ .next
3
+ .git
4
+ .gitignore
5
+ README.md
6
+ .env
7
+ .env.local
8
+ .env.development.local
9
+ .env.test.local
10
+ .env.production.local
11
+ npm-debug.log*
12
+ yarn-debug.log*
13
+ yarn-error.log*
14
+ .DS_Store
15
+ *.tsbuildinfo
Dockerfile ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Node.js 20 image
2
+ FROM node:20-alpine
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # Update npm to latest version to avoid the "Exit handler never called" error
8
+ RUN npm install -g npm@latest
9
+
10
+ # Copy package.json only (not package-lock.json)
11
+ COPY package.json ./
12
+
13
+ # Clear npm cache and install dependencies fresh
14
+ RUN npm cache clean --force && npm install --no-package-lock
15
+
16
+ # Copy the rest of the application
17
+ COPY . .
18
+
19
+ # Build the Next.js application
20
+ RUN npm run build
21
+
22
+ # Set port for Next.js
23
+ ENV PORT=7860
24
+
25
+ # Expose Hugging Face default port
26
+ EXPOSE 7860
27
+
28
+ # Start Next.js on port 7860
29
+ CMD ["npm", "start"]
README.md CHANGED
@@ -1,3 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
1
  # AI SDK ADHD Educational Simulation
2
 
3
  A Next.js application using the Vercel AI SDK to simulate students with ADHD for educational purposes. Helps educators, parents, and peers understand ADHD behaviors and develop supportive strategies.
 
1
+ ---
2
+ title: SEL Chat Coach
3
+ emoji: 🎓
4
+ colorFrom: blue
5
+ colorTo: purple
6
+ sdk: docker
7
+ pinned: false
8
+ license: mit
9
+ app_port: 7860
10
+ ---
11
+
12
  # AI SDK ADHD Educational Simulation
13
 
14
  A Next.js application using the Vercel AI SDK to simulate students with ADHD for educational purposes. Helps educators, parents, and peers understand ADHD behaviors and develop supportive strategies.