I have a Dockerfile looking like this:
FROM quorumengineering/quorum:latest
RUN apk add nodejs npm
RUN cd ~
RUN npm i axios
COPY watcher.js .
ENTRYPOINT [ "geth", "--raft", "--raftjoinexisting", "1" ]
CMD "node watcher.js"
What I'm trying to achieve is to run geth with parameters and then run nodejs app watcher.js
Container image is building correctly, using command:
docker build -t somename .
And it is starting properly using the command:
docker run -d somename
But when I docker exec -it containerID sh
and run ps i get:
/ # ps
PID USER TIME COMMAND
1 root 0:01 geth --raft --raftjoinexisting 1 /bin/sh -c "node watcher.js"
16 root 0:00 sh
23 root 0:00 ps
It looks like it is running both commands in one line... The geth
command is running perfectly, but the nodejs app is not starting... docker logs
is giving me no interesting output.