Gulp with Docker
gitlab-ci.yml file looks like: | |
image: runejuhl/nodejs-build:latest | |
stages: | |
- test | |
- build | |
test: | |
stage: test | |
script: | |
- ls ./ | |
build: | |
stage: build | |
script: | |
- npm run build | |
Docker Image: | |
# Ubuntu xenial with nodejs and npm packaging | |
FROM runejuhl/xenial-generic-build:latest | |
MAINTAINER Rune Juhl Jacobsen <runejuhl@enableit.dk> | |
WORKDIR /tmp | |
RUN apt-get update | |
RUN apt-get install -y \ | |
nodejs \ | |
nodejs-dev \ | |
npm | |
RUN npm install --global gulp-cli | |
RUN ln -s /usr/bin/nodejs /usr/bin/node | |
# clean a bit | |
RUN apt-get autoremove -y | |
RUN apt-get autoclean -y | |
This comment has been minimized.
This comment has been minimized.
dev dependency error but my package.json have dev dependencies |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
$ npm run build
module.js:328
throw err;
^
Error: Cannot find module 'run-sequence'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object. (/builds/obmondo/uiwork/gulpfile.js:6:19)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)