1
mirror of https://github.com/jakejarvis/hugo-docker.git synced 2025-07-03 09:46:38 -04:00

add explanation for using node:12-alpine as base image

This commit is contained in:
2020-05-18 00:15:58 -04:00
parent 24e16b7387
commit 79225bc6bc

View File

@ -1,3 +1,5 @@
# using a base image cached by GitHub:
# https://github.com/actions/virtual-environments/blob/master/images/linux/scripts/installers/docker-moby.sh#L42
FROM node:12-alpine
ENV HUGO_VERSION 0.70.0
@ -35,8 +37,9 @@ RUN apk update && \
chmod +x /usr/bin/hugo && \
rm -rf hugo_*
# verify everything's OK
RUN hugo env && \
# verify everything's OK, fail otherwise
RUN hugo version && \
hugo env && \
postcss --version && \
autoprefixer --version && \
pygmentize -V && \