Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Pand3ru authored Apr 7, 2024
1 parent 4f99aaf commit 9937c46
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM arm64v8/ubuntu:latest

# Install runtime dependencies for Hugo Extended
RUN apt-get update && \
apt-get install -y git ca-certificates wget && \
rm -rf /var/lib/apt/lists/*

# Set the working directory in the container
WORKDIR /site

# Download and install Hugo Extended
RUN wget https://github.com/gohugoio/hugo/releases/download/v0.124.1/hugo_extended_0.124.1_linux-arm64.tar.gz -O /tmp/hugo.tar.gz && \
tar -xzf /tmp/hugo.tar.gz -C /usr/local/bin/ hugo && \
rm /tmp/hugo.tar.gz
CMD ["hugo", "version"]

0 comments on commit 9937c46

Please sign in to comment.