You've already forked hugo-docker
mirror of
https://github.com/jakejarvis/hugo-docker.git
synced 2025-07-03 07:26:38 -04:00
forking a vanilla Docker image from the GH action repo
This commit is contained in:
18
Dockerfile
18
Dockerfile
@ -7,13 +7,8 @@ ARG HUGO_VERSION=0.74.3
|
||||
# remove/comment the following line completely to build with vanilla Hugo:
|
||||
ARG HUGO_EXTENDED=1
|
||||
|
||||
LABEL "com.github.actions.name"="Hugo Build"
|
||||
LABEL "com.github.actions.description"="Hugo as an action, with extended support and legacy versions"
|
||||
LABEL "com.github.actions.icon"="edit"
|
||||
LABEL "com.github.actions.color"="gray-dark"
|
||||
|
||||
LABEL version="${HUGO_VERSION}${HUGO_EXTENDED:+-extended}"
|
||||
LABEL repository="https://github.com/jakejarvis/hugo-build-action"
|
||||
LABEL version="${HUGO_VERSION}"
|
||||
LABEL repository="https://github.com/jakejarvis/hugo-docker"
|
||||
LABEL homepage="https://jarv.is/"
|
||||
LABEL maintainer="Jake Jarvis <jake@jarv.is>"
|
||||
|
||||
@ -42,7 +37,7 @@ RUN apk update && \
|
||||
chmod +x /usr/local/bin/hugo && \
|
||||
rm -rf hugo_* LICENSE README.md
|
||||
|
||||
# verify everything's OK, fail otherwise
|
||||
# verify everything's OK, exit otherwise
|
||||
RUN hugo version && \
|
||||
hugo env && \
|
||||
postcss --version && \
|
||||
@ -51,4 +46,11 @@ RUN hugo version && \
|
||||
pygmentize -V && \
|
||||
asciidoctor --version
|
||||
|
||||
# add site source as volume
|
||||
VOLUME /src
|
||||
WORKDIR /src
|
||||
|
||||
# expose live-refresh server
|
||||
EXPOSE 1313
|
||||
|
||||
ENTRYPOINT ["hugo"]
|
||||
|
Reference in New Issue
Block a user