mirror of
https://github.com/jakejarvis/hugo-docker.git
synced 2025-04-26 18:48:27 -04:00
re-work installing third-party dependencies, such as:
- postcss-cli - autoprefixer - pygments - asciidoctor
This commit is contained in:
parent
3802fc5234
commit
24e16b7387
14
Dockerfile
14
Dockerfile
@ -20,11 +20,13 @@ RUN apk update && \
|
|||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
git \
|
git \
|
||||||
asciidoctor \
|
|
||||||
python3 \
|
python3 \
|
||||||
py3-pygments \
|
ruby \
|
||||||
${HUGO_EXTENDED:+libc6-compat libstdc++} && \
|
${HUGO_EXTENDED:+libc6-compat libstdc++} && \
|
||||||
update-ca-certificates && \
|
update-ca-certificates && \
|
||||||
|
npm install --global postcss-cli autoprefixer && \
|
||||||
|
pip3 install --upgrade Pygments==2.* && \
|
||||||
|
gem install asciidoctor && \
|
||||||
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_EXTENDED:+extended_}${HUGO_VERSION}_Linux-64bit.tar.gz && \
|
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_EXTENDED:+extended_}${HUGO_VERSION}_Linux-64bit.tar.gz && \
|
||||||
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_checksums.txt && \
|
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_checksums.txt && \
|
||||||
grep hugo_${HUGO_EXTENDED:+extended_}${HUGO_VERSION}_Linux-64bit.tar.gz hugo_${HUGO_VERSION}_checksums.txt | sha256sum -c && \
|
grep hugo_${HUGO_EXTENDED:+extended_}${HUGO_VERSION}_Linux-64bit.tar.gz hugo_${HUGO_VERSION}_checksums.txt | sha256sum -c && \
|
||||||
@ -33,7 +35,11 @@ RUN apk update && \
|
|||||||
chmod +x /usr/bin/hugo && \
|
chmod +x /usr/bin/hugo && \
|
||||||
rm -rf hugo_*
|
rm -rf hugo_*
|
||||||
|
|
||||||
# make sure everything's okay
|
# verify everything's OK
|
||||||
RUN hugo version
|
RUN hugo env && \
|
||||||
|
postcss --version && \
|
||||||
|
autoprefixer --version && \
|
||||||
|
pygmentize -V && \
|
||||||
|
asciidoctor --version
|
||||||
|
|
||||||
ENTRYPOINT ["hugo"]
|
ENTRYPOINT ["hugo"]
|
||||||
|
10
README.md
10
README.md
@ -20,7 +20,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- uses: jakejarvis/hugo-build-action@master
|
- uses: jakejarvis/hugo-build-action@master # ...or replace 'master' with a full version tag, such as: v0.64.1
|
||||||
with:
|
with:
|
||||||
args: --minify --buildDrafts
|
args: --minify --buildDrafts
|
||||||
- uses: actions/upload-artifact@master
|
- uses: actions/upload-artifact@master
|
||||||
@ -29,6 +29,14 @@ jobs:
|
|||||||
path: './public'
|
path: './public'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Included Software
|
||||||
|
|
||||||
|
Just in case, the final container includes a few small third-party tools that are required by certain optional Hugo features.
|
||||||
|
|
||||||
|
- [Asciidoctor](https://asciidoctor.org/)
|
||||||
|
- [Pygments](https://pygments.org/)
|
||||||
|
- [PostCSS (CLI)](https://github.com/postcss/postcss-cli)
|
||||||
|
- [Autoprefixer](https://github.com/postcss/autoprefixer)
|
||||||
|
|
||||||
## Licenses
|
## Licenses
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user