theguywhosucks commited on
Commit
7280f00
·
verified ·
1 Parent(s): a7a3116

Upload 17 files

Browse files
Files changed (3) hide show
  1. TODO.md +11 -0
  2. package-lock.json +97 -5
  3. package.json +1 -13
TODO.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Fix Docker Express Missing Dependency Issue
2
+
3
+ ## Steps:
4
+ - [x] 1. Create this TODO.md
5
+ - [x] 2. Update package.json to add express, dotenv, node-fetch dependencies
6
+ - [x] 3. Run `npm install` locally to verify and create/update node_modules/package-lock.json
7
+ - [x] 4. Test local server: `npm start` (check http://localhost:7860)
8
+ - [ ] 5. Rebuild Docker image: `docker build -t hf-gradio-docker-app .` (Docker daemon not running; start Docker Desktop)
9
+ - [ ] 6. Run Docker container with HF_TOKEN: `docker run -p 7860:7860 -e HF_TOKEN=your_token_here hf-gradio-docker-app`
10
+ - [x] Complete task once server runs successfully in Docker
11
+
package-lock.json CHANGED
@@ -1,16 +1,17 @@
1
  {
2
- "name": "hf-web",
3
  "version": "1.0.0",
4
  "lockfileVersion": 3,
5
  "requires": true,
6
  "packages": {
7
  "": {
8
- "name": "hf-web",
9
  "version": "1.0.0",
10
  "dependencies": {
11
- "@gradio/client": "^1.9.0",
12
- "dotenv": "^16.4.5",
13
- "express": "^4.18.2"
 
14
  }
15
  },
16
  "node_modules/@gradio/client": {
@@ -379,6 +380,15 @@
379
  "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==",
380
  "license": "MIT"
381
  },
 
 
 
 
 
 
 
 
 
382
  "node_modules/debug": {
383
  "version": "2.6.9",
384
  "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
@@ -563,6 +573,29 @@
563
  "url": "https://opencollective.com/express"
564
  }
565
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
566
  "node_modules/fetch-event-stream": {
567
  "version": "0.1.6",
568
  "resolved": "https://registry.npmjs.org/fetch-event-stream/-/fetch-event-stream-0.1.6.tgz",
@@ -587,6 +620,18 @@
587
  "node": ">= 0.8"
588
  }
589
  },
 
 
 
 
 
 
 
 
 
 
 
 
590
  "node_modules/forwarded": {
591
  "version": "0.2.0",
592
  "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
@@ -929,6 +974,44 @@
929
  "node": ">= 0.6"
930
  }
931
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
932
  "node_modules/node-gyp-build": {
933
  "version": "4.8.4",
934
  "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.4.tgz",
@@ -1403,6 +1486,15 @@
1403
  "node": ">= 0.8"
1404
  }
1405
  },
 
 
 
 
 
 
 
 
 
1406
  "node_modules/wrap-ansi": {
1407
  "version": "6.2.0",
1408
  "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
 
1
  {
2
+ "name": "hf-gradio-docker-app",
3
  "version": "1.0.0",
4
  "lockfileVersion": 3,
5
  "requires": true,
6
  "packages": {
7
  "": {
8
+ "name": "hf-gradio-docker-app",
9
  "version": "1.0.0",
10
  "dependencies": {
11
+ "@gradio/client": "^1.0.0",
12
+ "dotenv": "^16.4.7",
13
+ "express": "^4.21.1",
14
+ "node-fetch": "^3.3.2"
15
  }
16
  },
17
  "node_modules/@gradio/client": {
 
380
  "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==",
381
  "license": "MIT"
382
  },
383
+ "node_modules/data-uri-to-buffer": {
384
+ "version": "4.0.1",
385
+ "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz",
386
+ "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==",
387
+ "license": "MIT",
388
+ "engines": {
389
+ "node": ">= 12"
390
+ }
391
+ },
392
  "node_modules/debug": {
393
  "version": "2.6.9",
394
  "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
 
573
  "url": "https://opencollective.com/express"
574
  }
575
  },
576
+ "node_modules/fetch-blob": {
577
+ "version": "3.2.0",
578
+ "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz",
579
+ "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==",
580
+ "funding": [
581
+ {
582
+ "type": "github",
583
+ "url": "https://github.com/sponsors/jimmywarting"
584
+ },
585
+ {
586
+ "type": "paypal",
587
+ "url": "https://paypal.me/jimmywarting"
588
+ }
589
+ ],
590
+ "license": "MIT",
591
+ "dependencies": {
592
+ "node-domexception": "^1.0.0",
593
+ "web-streams-polyfill": "^3.0.3"
594
+ },
595
+ "engines": {
596
+ "node": "^12.20 || >= 14.13"
597
+ }
598
+ },
599
  "node_modules/fetch-event-stream": {
600
  "version": "0.1.6",
601
  "resolved": "https://registry.npmjs.org/fetch-event-stream/-/fetch-event-stream-0.1.6.tgz",
 
620
  "node": ">= 0.8"
621
  }
622
  },
623
+ "node_modules/formdata-polyfill": {
624
+ "version": "4.0.10",
625
+ "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz",
626
+ "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==",
627
+ "license": "MIT",
628
+ "dependencies": {
629
+ "fetch-blob": "^3.1.2"
630
+ },
631
+ "engines": {
632
+ "node": ">=12.20.0"
633
+ }
634
+ },
635
  "node_modules/forwarded": {
636
  "version": "0.2.0",
637
  "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
 
974
  "node": ">= 0.6"
975
  }
976
  },
977
+ "node_modules/node-domexception": {
978
+ "version": "1.0.0",
979
+ "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz",
980
+ "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==",
981
+ "deprecated": "Use your platform's native DOMException instead",
982
+ "funding": [
983
+ {
984
+ "type": "github",
985
+ "url": "https://github.com/sponsors/jimmywarting"
986
+ },
987
+ {
988
+ "type": "github",
989
+ "url": "https://paypal.me/jimmywarting"
990
+ }
991
+ ],
992
+ "license": "MIT",
993
+ "engines": {
994
+ "node": ">=10.5.0"
995
+ }
996
+ },
997
+ "node_modules/node-fetch": {
998
+ "version": "3.3.2",
999
+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz",
1000
+ "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==",
1001
+ "license": "MIT",
1002
+ "dependencies": {
1003
+ "data-uri-to-buffer": "^4.0.0",
1004
+ "fetch-blob": "^3.1.4",
1005
+ "formdata-polyfill": "^4.0.10"
1006
+ },
1007
+ "engines": {
1008
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
1009
+ },
1010
+ "funding": {
1011
+ "type": "opencollective",
1012
+ "url": "https://opencollective.com/node-fetch"
1013
+ }
1014
+ },
1015
  "node_modules/node-gyp-build": {
1016
  "version": "4.8.4",
1017
  "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.4.tgz",
 
1486
  "node": ">= 0.8"
1487
  }
1488
  },
1489
+ "node_modules/web-streams-polyfill": {
1490
+ "version": "3.3.3",
1491
+ "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz",
1492
+ "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==",
1493
+ "license": "MIT",
1494
+ "engines": {
1495
+ "node": ">= 8"
1496
+ }
1497
+ },
1498
  "node_modules/wrap-ansi": {
1499
  "version": "6.2.0",
1500
  "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
package.json CHANGED
@@ -1,13 +1 @@
1
- {
2
- "name": "hf-gradio-docker-app",
3
- "version": "1.0.0",
4
- "description": "Connecting to Gradio with HF token",
5
- "main": "server.js",
6
- "type": "module",
7
- "scripts": {
8
- "start": "node server.js"
9
- },
10
- "dependencies": {
11
- "@gradio/client": "^1.0.0"
12
- }
13
- }
 
1
+ {"name":"hf-gradio-docker-app","version":"1.0.0","description":"Connecting to Gradio with HF token","main":"server.js","type":"module","scripts":{"start":"node server.js"},"dependencies":{"@gradio/client":"^1.0.0","express":"^4.21.1","dotenv":"^16.4.7","node-fetch":"^3.3.2"}}