Reputation: 3108
I am creating apis in es6. As I try to dockerize, I am getting the error below -->
System error: exec: "node --harmony": executable file not found in $PATH
Here is my dockerfile listing
FROM node:5.5
COPY . /src
RUN cd /src; npm install
EXPOSE 9095
WORKDIR /src
RUN pwd
CMD ["node --harmony", "cluster.js"]
Upvotes: 1
Views: 249
Reputation: 816930
(Note: I have no idea about docker)
Looking at the error message and the syntax for declaring the command, it seems that every command line parameter has to be specified as separate element, so you should be doing
CMD ["node", "--harmony", "cluster.js"]
Upvotes: 4