Fastest Docker image to run Hugo on Amazon AWS Amplify Console
At the time of writting, the Amplify Console documentation about custom build images doesn't give a lot of info about the requirements and about the environment. Therefore I tried different build images to roughly measeure and compare the build times.
Image | Time |
---|---|
Default Amazon Image | ~3 minutes |
alpine:latest | doesn't work* |
amazonlinux:2 | ~1 minute |
debian:stable-slim | ~1.5 minutes |
ubuntu:latest | ~1 minute |
* Alpine is not supported yet: aws-amplify/amplify-hosting#105 (comment)
You can try the different images using the branches in this repo. They are also uploaded to Docker Hub.
Image | Git Branch | Docker Hub |
---|---|---|
amazonlinux:2 | master | butaca/amplify-hugo |
alpine:latest | alpine | butaca/amplify-hugo:alpine |
debian:stable-slim | debian | butaca/amplify-hugo:debian |
ubuntu:latest | ubuntu | butaca/amplify-hugo:ubuntu |