Spaces:
Sleeping
Sleeping
GamerC0der
commited on
Commit
·
c59db31
1
Parent(s):
b1b2ebd
Make Docker container bind to 0.0.0.0 for external access
Browse files- Add --host 0.0.0.0 flag to pnpm run dev command
- Allows container to be accessed from outside the Docker network
- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -21,5 +21,5 @@ ENV NODE_ENV=production \
|
|
| 21 |
PORT=7860 \
|
| 22 |
DISABLE_CLOUDFLARE_PROXY=true
|
| 23 |
|
| 24 |
-
# Start command using pnpm run dev
|
| 25 |
-
CMD ["pnpm", "run", "dev"]
|
|
|
|
| 21 |
PORT=7860 \
|
| 22 |
DISABLE_CLOUDFLARE_PROXY=true
|
| 23 |
|
| 24 |
+
# Start command using pnpm run dev with host binding
|
| 25 |
+
CMD ["pnpm", "run", "dev", "--", "--host", "0.0.0.0"]
|