commit 7f7dfb563e323cd435f1e2484821c7ed200bde96 Author: askiiart Date: Sat Aug 26 13:44:05 2023 -0500 Initial commit 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