Spaces:
Running
Running
Upload 3 files
Browse files- Dockerfile +2 -2
- huggingface.yml +1 -1
- 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
|
| 25 |
-
EXPOSE
|
| 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:
|
|
|
|
| 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 |
|