Spaces:
Running
Running
Commit
·
1fba20a
1
Parent(s):
bb5f1a6
simplifying the CMD at the end of the build
Browse files- Dockerfile +2 -1
- myNodeServer.js +1 -1
Dockerfile
CHANGED
@@ -27,6 +27,7 @@ RUN yarn install
|
|
27 |
EXPOSE 4444
|
28 |
EXPOSE 1688
|
29 |
|
30 |
-
CMD ["bash", "run.sh"]
|
|
|
31 |
# ## docker build -t manusapiens/omnitool-test2b .
|
32 |
# ## docker run --name n13 -p 1688:1688 -d manusapiens/omnitool-test2b
|
|
|
27 |
EXPOSE 4444
|
28 |
EXPOSE 1688
|
29 |
|
30 |
+
#CMD ["bash", "run.sh"]
|
31 |
+
CMD ["node", "myNodeServer.js","--port 4444", "--host 0.0.0.0", "&"]
|
32 |
# ## docker build -t manusapiens/omnitool-test2b .
|
33 |
# ## docker run --name n13 -p 1688:1688 -d manusapiens/omnitool-test2b
|
myNodeServer.js
CHANGED
@@ -72,7 +72,7 @@ async function handleRoutes(req, res, proxy_port)
|
|
72 |
const hostport = localUrl.split(':')[1] || PROXY_PORT_HUGGINGFACE;
|
73 |
const newUrl = `${PROTOCOL}://${hostname}:${PROXY_PORT_OMNITOOL}`;
|
74 |
|
75 |
-
console.log(`hostname = ${hostname}, hostport = ${hostport}, newUrl = ${newUrl}`);
|
76 |
|
77 |
if (!OMNITOOL_READY)
|
78 |
{
|
|
|
72 |
const hostport = localUrl.split(':')[1] || PROXY_PORT_HUGGINGFACE;
|
73 |
const newUrl = `${PROTOCOL}://${hostname}:${PROXY_PORT_OMNITOOL}`;
|
74 |
|
75 |
+
//console.log(`hostname = ${hostname}, hostport = ${hostport}, newUrl = ${newUrl}`);
|
76 |
|
77 |
if (!OMNITOOL_READY)
|
78 |
{
|