cd <root-dir>
docker build -t gulp-builder .
docker run -v `pwd`:/opt gulp-builder npm install
docker run -v `pwd`:/opt gulp-builder ./node_modules/.bin/gulp
Created
June 15, 2021 11:26
-
-
Save Schrank/a3fff9801c4ec02633e38e1cf0cc780e to your computer and use it in GitHub Desktop.
Building gulp/npm with docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:12-buster | |
MAINTAINER Fabian Blechschmidt | |
WORKDIR /opt | |
VOLUME ["/opt"] | |
CMD ["gulp", "default"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment