init setup
This commit is contained in:
commit
aa149fcf5c
2 changed files with 54 additions and 0 deletions
19
Dockerfile
Normal file
19
Dockerfile
Normal file
|
@ -0,0 +1,19 @@
|
|||
FROM ubuntu:24.04 as base
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y wget && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
WORKDIR /tmp/hugo
|
||||
|
||||
ARG TARGETARCH=amd64
|
||||
ARG HUGO_VERSION=0.135.0
|
||||
|
||||
RUN wget -O "hugo.tar.gz" --progress=dot:giga "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-${TARGETARCH}.tar.gz"
|
||||
|
||||
RUN tar -xf "hugo.tar.gz" hugo -C /usr/bin && \
|
||||
cp /tmp/hugo/hugo /usr/bin/hugo
|
||||
|
||||
WORKDIR /content
|
||||
ENTRYPOINT ["hugo"]
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue