1
0
Fork 0

fix(gui): run dev server from node image

This commit is contained in:
Sean Sube 2023-01-06 15:07:31 -06:00
parent 5e9890fb82
commit ee6cf50df7
2 changed files with 4 additions and 4 deletions

View File

@ -10,11 +10,11 @@ COPY yarn.lock /onnx-web/yarn.lock
RUN yarn install --production
# copy chunks, largest to smallest (entrypoint)
COPY serve.js /onnx-web/serve.js
COPY out/src/ /onnx-web/out/src/
COPY out/bundle/ /onnx-web/out/bundle/
# set up as global cli tool
RUN yarn global add file:$(pwd)
ENTRYPOINT [ "node", "/onnx-web/out/bundle/main.js" ]
CMD [ "--help" ]
ENTRYPOINT [ "node", "/onnx-web/serve.js" ]

View File

@ -10,11 +10,11 @@ COPY yarn.lock /onnx-web/yarn.lock
RUN yarn install --production
# copy chunks, largest to smallest (entrypoint)
COPY serve.js /onnx-web/serve.js
COPY out/src/ /onnx-web/out/src/
COPY out/bundle/ /onnx-web/out/bundle/
# set up as global cli tool
RUN yarn global add file:$(pwd)
ENTRYPOINT [ "node", "/onnx-web/out/bundle/main.js" ]
CMD [ "--help" ]
ENTRYPOINT [ "node", "/onnx-web/serve.js" ]