Spaces:
Sleeping
Sleeping
Commit
·
9877c43
1
Parent(s):
5e1d569
go back to port 9090
Browse files- Dockerfile +3 -3
- src/webpack.config.cjs +1 -1
Dockerfile
CHANGED
|
@@ -15,7 +15,7 @@ COPY src/ ./
|
|
| 15 |
|
| 16 |
|
| 17 |
# Expose the port expected by Hugging Face Spaces
|
| 18 |
-
EXPOSE
|
| 19 |
|
| 20 |
-
# Start the application on 0.0.0.0 and use the port from $PORT (default
|
| 21 |
-
CMD ["sh", "-c", "npm start -- --host 0.0.0.0 --port ${PORT:-
|
|
|
|
| 15 |
|
| 16 |
|
| 17 |
# Expose the port expected by Hugging Face Spaces
|
| 18 |
+
EXPOSE 9090
|
| 19 |
|
| 20 |
+
# Start the application on 0.0.0.0 and use the port from $PORT (default 9090), allow all hosts
|
| 21 |
+
CMD ["sh", "-c", "npm start -- --host 0.0.0.0 --port ${PORT:-9090} --allowed-hosts all"]
|
src/webpack.config.cjs
CHANGED
|
@@ -44,7 +44,7 @@ const browserConfig = {
|
|
| 44 |
open: true,
|
| 45 |
static: false,
|
| 46 |
server: "http",
|
| 47 |
-
port:
|
| 48 |
},
|
| 49 |
|
| 50 |
plugins: [
|
|
|
|
| 44 |
open: true,
|
| 45 |
static: false,
|
| 46 |
server: "http",
|
| 47 |
+
port: 9090
|
| 48 |
},
|
| 49 |
|
| 50 |
plugins: [
|