D
D
Dmitry Maslennikov2018-06-23 15:15:52
Node.js
Dmitry Maslennikov, 2018-06-23 15:15:52

How to run a Node.JS file in Docker?

On the server, the previous developer placed the node file in this folder:

../docker/local/php/code/simple.js

What command can I use to call it in Docker?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
planc, 2018-06-23
@planc

docker run --rm -v /путь/к/файлу/simple.js:/app/simple.js -u node node node /app/simple.js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question