gaialive commited on
Commit
9bc6413
·
verified ·
1 Parent(s): 7aafcd0

Upload 3 files

Browse files
Files changed (3) hide show
  1. Dockerfile +2 -2
  2. huggingface.yml +1 -1
  3. start.sh +4 -1
Dockerfile CHANGED
@@ -21,8 +21,8 @@ RUN chmod -R 777 frontend/node_modules backend/node_modules
21
  # Make the startup script executable
22
  RUN chmod +x start.sh
23
 
24
- # Expose ports for both frontend and backend
25
- EXPOSE 5173 3000
26
 
27
  # Start both services
28
  CMD ["./start.sh"]
 
21
  # Make the startup script executable
22
  RUN chmod +x start.sh
23
 
24
+ # Expose port 8501 for Hugging Face Spaces
25
+ EXPOSE 8501
26
 
27
  # Start both services
28
  CMD ["./start.sh"]
huggingface.yml CHANGED
@@ -1,4 +1,4 @@
1
  # Hugging Face Space configuration
2
  name: n4sm-platform
3
  sdk: docker
4
- app_port: 5173
 
1
  # Hugging Face Space configuration
2
  name: n4sm-platform
3
  sdk: docker
4
+ app_port: 8501
start.sh CHANGED
@@ -1,7 +1,10 @@
1
  #!/bin/bash
2
 
 
 
 
3
  # Start the backend server in the background
4
- echo "Starting backend server..."
5
  cd backend
6
  npm start &
7
 
 
1
  #!/bin/bash
2
 
3
+ # Set the port for Hugging Face Spaces
4
+ export PORT=8501
5
+
6
  # Start the backend server in the background
7
+ echo "Starting backend server on port $PORT..."
8
  cd backend
9
  npm start &
10