Base docker image for building XML-based static sites in the DHIL
- Base image: node:lts-bullseye-slim
- Installs:
- Apache ant and ant-contrib (for building)
- saxon (for running XSLT)
- sass (compiling SCSS -> CSS)
- imagemagick (routine image manipulation)
- jing (RelaxNG validation)
- Working dir:
/var/www
After the image is pulled, it can be used like so:
- Running
ant
for a build in ${PROJECT_DIR}/build.xml:
docker run -v ${PROJECT_DIR}:/var/www dhilsfu/static-base:latest ant
- Validating files in a directory using Jing:
docker run -v $(pwd):/var/www dhilsfu/static-base:latest jing schema/schema.rng documents/*.xml