A Docker Container for Aglio.
Read the official Aglio Documentation first.
# build
docker run --rm -v "$PWD:/aglio" jaceju/aglio -i <source_file> -o <output_file> --theme-variables slate
# serve
docker run --rm -v "$PWD:/aglio" -dp 3000:3000 jaceju/aglio -s -h 0.0.0.0 -i <source_file>
For short, you can use alias for the long command line text. Place the alias statement in your .bashrc
or .zshrc
.
alias aglio='docker run --rm --name aglio -v "$PWD:/aglio" -dp 3000:3000 jaceju/aglio -s -h 0.0.0.0
docker build --no-cache -t jaceju/aglio .