Skip to content

Base Docker image for building static sites

Notifications You must be signed in to change notification settings

sfu-dhil/static-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static Docker Image

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:

  1. Running ant for a build in ${PROJECT_DIR}/build.xml:
docker run -v ${PROJECT_DIR}:/var/www dhilsfu/static-base:latest ant
  1. Validating files in a directory using Jing:
 docker run -v $(pwd):/var/www dhilsfu/static-base:latest jing schema/schema.rng documents/*.xml

About

Base Docker image for building static sites

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published