Compiling SASS has never been more easy ...
docker pull zamiere/gulp
DIR_SASS: map your local SASS folder inside the ContainerDIR_CSS: map your local CSS folder inside the Container
FILES_SASS: define what SASS files you want to use**/*.sassuses all sass files in the folder and all subfolders (default)*.sassuses the sass files in your current sass foldermain.sassuses only the main.sass file*.+(sass|scss)uses all sass and scss files in the current folder
- maps the
sassfolder from your current directory - maps the
cssfolder from your current directory - compiles all
*.sassand*.scssfiles in yoursassfolder
docker run -it \
-v ${PWD}/sass:/site/sass \
-v ${PWD}/css:/site/css \
-e SASS='*.+(sass|scss)' \
zamiere/gulp
.env
DIR_SASS=./style/sass
DIR_CSS=./style/css
FILES_SASS=**/*.+(sass|scss)
GULP_DEBUG=true
docker-compose.yml
version: '3'
services:
gulp:
image: zamiere/gulp:latest
volumes:
- ${DIR_SASS}:/site/sass
- ${DIR_CSS}:/site/css
environment:
- SASS=${FILES_SASS}
- CSS=${DIR_CSS}
- - GULP_DEBUG=${GULP_DEBUG}
networks:
- webdev
networks:
webdev:
driver: bridge