Answer the question
In order to leave comments, you need to log in
How to execute gulp.task inside docker?
There is a docker file that installs nodejs, copies package.json from the local environment and then installs all dependencies from it (gulp, gulp-cli is installed).
FROM node
COPY scripts .
RUN npm install
EXPOSE 8081
var gulp = require('gulp');
gulp.task('say', function() {
console.log('hello');
});
gulp say
Answer the question
In order to leave comments, you need to log in
In order for the command to be available to run from the shell, gulp must be installed with the -g (global) switch for npm. Or run like this:$ node node_modules/.bin/gulp
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question