1
mirror of https://github.com/jakejarvis/hugo-docker.git synced 2025-07-03 16:36:37 -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 FROM node:12-alpine
ENV HUGO_VERSION 0.70.0 ENV HUGO_VERSION 0.70.0
@ -35,8 +37,9 @@ RUN apk update && \
chmod +x /usr/bin/hugo && \ chmod +x /usr/bin/hugo && \
rm -rf hugo_* rm -rf hugo_*
# verify everything's OK # verify everything's OK, fail otherwise
RUN hugo env && \ RUN hugo version && \
hugo env && \
postcss --version && \ postcss --version && \
autoprefixer --version && \ autoprefixer --version && \
pygmentize -V && \ pygmentize -V && \