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
MAINTAINER Ryan Kes <[email protected]>
 
# 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 :

Image Size Deploy Duration
nodesource/trusty 62.8 MB 33s
andthensome/alpine-surge-bash 19.8 MB 16s