hsila commited on
Commit
72521aa
·
1 Parent(s): d4b0c6b

feat: add Hugging Face Spaces deployment configuration

Browse files

- Add .space.toml for Space metadata and branding
- Add Dockerfile for containerized deployment
- Configure port 7860 for Hugging Face Spaces
- Set up static file serving for production build

Files changed (2) hide show
  1. .space.toml +7 -0
  2. Dockerfile +24 -0
.space.toml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ title = "Speaking Practice Browser"
2
+ emoji = "📚"
3
+ colorFrom = "blue"
4
+ colorTo = "purple"
5
+ sdk = "docker"
6
+ pinned = false
7
+ license = "mit"
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18-alpine
2
+
3
+ WORKDIR /app
4
+
5
+ # Copy package files
6
+ COPY package*.json ./
7
+
8
+ # Install dependencies
9
+ RUN npm ci
10
+
11
+ # Copy source code
12
+ COPY . .
13
+
14
+ # Build the project
15
+ RUN npm run build
16
+
17
+ # Install serve to run the built app
18
+ RUN npm install -g serve
19
+
20
+ # Expose port
21
+ EXPOSE 7860
22
+
23
+ # Serve the built app
24
+ CMD ["serve", "-s", "dist", "-l", "7860"]