Spaces:
Build error
Build error
Gmagl commited on
Commit ·
b5b5794
1
Parent(s): 31de075
Change port to 7860 for Hugging Face
Browse files- Dockerfile +2 -2
- package.json +3 -3
Dockerfile
CHANGED
|
@@ -25,12 +25,12 @@ RUN mkdir -p /app/data && chmod 777 /app/data
|
|
| 25 |
|
| 26 |
# Environment variables
|
| 27 |
ENV NODE_ENV=production
|
| 28 |
-
ENV PORT=
|
| 29 |
ENV HOST=0.0.0.0
|
| 30 |
# Set a default SQLite path if DATABASE_URL is not provided at runtime
|
| 31 |
ENV DATABASE_URL="file:/app/data/sofia.db"
|
| 32 |
|
| 33 |
-
EXPOSE
|
| 34 |
|
| 35 |
# Use entrypoint to handle migrations/initialization
|
| 36 |
ENTRYPOINT ["sh", "/app/entrypoint.sh"]
|
|
|
|
| 25 |
|
| 26 |
# Environment variables
|
| 27 |
ENV NODE_ENV=production
|
| 28 |
+
ENV PORT=7860
|
| 29 |
ENV HOST=0.0.0.0
|
| 30 |
# Set a default SQLite path if DATABASE_URL is not provided at runtime
|
| 31 |
ENV DATABASE_URL="file:/app/data/sofia.db"
|
| 32 |
|
| 33 |
+
EXPOSE 7860
|
| 34 |
|
| 35 |
# Use entrypoint to handle migrations/initialization
|
| 36 |
ENTRYPOINT ["sh", "/app/entrypoint.sh"]
|
package.json
CHANGED
|
@@ -3,9 +3,9 @@
|
|
| 3 |
"version": "1.0.0",
|
| 4 |
"private": true,
|
| 5 |
"scripts": {
|
| 6 |
-
"dev": "next dev -p
|
| 7 |
"build": "next build",
|
| 8 |
-
"start": "next start -p
|
| 9 |
"lint": "eslint ."
|
| 10 |
},
|
| 11 |
"dependencies": {
|
|
@@ -71,4 +71,4 @@
|
|
| 71 |
"tailwindcss": "^4",
|
| 72 |
"typescript": "^5"
|
| 73 |
}
|
| 74 |
-
}
|
|
|
|
| 3 |
"version": "1.0.0",
|
| 4 |
"private": true,
|
| 5 |
"scripts": {
|
| 6 |
+
"dev": "next dev -p 7860 -H 0.0.0.0",
|
| 7 |
"build": "next build",
|
| 8 |
+
"start": "next start -p 7860 -H 0.0.0.0",
|
| 9 |
"lint": "eslint ."
|
| 10 |
},
|
| 11 |
"dependencies": {
|
|
|
|
| 71 |
"tailwindcss": "^4",
|
| 72 |
"typescript": "^5"
|
| 73 |
}
|
| 74 |
+
}
|