profileRyan KesPGP keyI build stuffEmailGithubTwitterLast.fmMastodonMatrix

Alpine-Surge-Bash Docker Image

I use wercker to automatically deploy this site. One of the nice things about wercker is that it allows for you use docker images in your builds. To keep deployment time to a minimum I've created a docker image with all the tools I need to deploy this site. Namely:

The Dockerfile itself is nothing shocking:

FROM mhart/alpine-node:latest

# Install pygments (for syntax highlighting)
RUN apk update && apk add bash && rm -rf /var/cache/apk/\*

# Install surge client
RUN npm install -g surge

A comparison of image sizes & deploy speeds :

ImageSizeDeploy Duration
nodesource/trusty62.8 MB33s
andthensome/alpine-surge-bash19.8 MB16s