#! /usr/bin/env perl6 use v6.c; #| Create a docker image of the blog. sub MAIN ( #| The tag to use for the docker image. Str:D :$tag = "tyil/blog:latest", ) { my IO::Path $basedir = $*PROGRAM.resolve.parent(2); chdir $basedir; run « bundle »; run « bundle exec jekyll build »; run « docker build -t "$tag" . »; }