Skip to content

Commit

Permalink
DockerfileでHugo_extendedのバージョンを指定してインストールさせる (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
riscait authored Jan 10, 2024
1 parent 80dce4f commit 5f5a46a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "The Altive Handbook",
"build": {
"dockerfile": "Dockerfile"
}
}
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ubuntu:latest

# Hugo Extendedのバージョンを指定する。
ARG HUGO_VERSION=0.121.1

# SASSを使用しているため、 hugo_extended をダウンロードして使用する必要がある。
RUN wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg --install --skip-same-version hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& rm hugo_extended_${HUGO_VERSION}_linux-amd64.deb

0 comments on commit 5f5a46a

Please sign in to comment.