How to run gulp.task inside docker?

Have a Docker file which puts nodejs, copies from the local oburzenie package.json and then installs all the dependencies of it (put ' gulp, gulp-cli).
FROM node
COPY scripts .
RUN npm install
EXPOSE 8081


Also copies gulpfile, with a simple Tusk
var gulp = require('gulp');

gulp.task('say', function() {
console.log('hello');
});


You cannot perform this task inside the container, though there is a file and all dependencies are
gulp say

not working, in the console says that command not found
June 5th 19 at 21:43
1 answer
June 5th 19 at 21:45
Solution
The command can be accessed from the shell, it is necessary to put gulp with the-g (global) to npm. Either run this:

$ node node_modules/.bin/gulp

Find more questions by tags DockerGulp.jsNode.js