From 7f7dfb563e323cd435f1e2484821c7ed200bde96 Mon Sep 17 00:00:00 2001 From: askiiart Date: Sat, 26 Aug 2023 13:44:05 -0500 Subject: [PATCH] Initial commit --- .gitignore | 2 ++ Dockerfile | 5 +++++ README.md | 9 +++++++++ 3 files changed, 16 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d143589 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +dart-sass* +hugo*_linux-amd64* \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7f280e8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM golang:alpine3.18 +WORKDIR /data +COPY dart-sass/* /bin +RUN apk add git +COPY hugo*/hugo /bin \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..f8ef759 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# docker-hugo + +Hugo in a Docker container + +## Building + +1. Download Dart Sass (linux-x64) from [here](https://github.com/sass/dart-sass/releases/latest), and extract it with `tar -xzf dart-sass-*.tar.gz` +2. Download Hugo from (linux-amd64) from [here](https://github.com/gohugoio/hugo/releases/latest) and extract it with `tar -xzf` +3. Run `docker build .` \ No newline at end of file