Skip to content

Instantly share code, notes, and snippets.

@Schrank
Created June 15, 2021 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Schrank/a3fff9801c4ec02633e38e1cf0cc780e to your computer and use it in GitHub Desktop.
Save Schrank/a3fff9801c4ec02633e38e1cf0cc780e to your computer and use it in GitHub Desktop.
Building gulp/npm with docker

Build CSS & JS with docker

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
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