diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d111cc8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM alpine:3.12 + +RUN apk add --no-cache hugo + +WORKDIR /var/www/html +VOLUME /var/www/html +EXPOSE 1313 + +ENTRYPOINT ["hugo", "serve", "--bind", "0.0.0.0", "--watch"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..9f44dd8 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +## Docker for local development and testing + +1. Build Docker image: `docker build -t hugo .` +2. Run container: `docker run --rm -v $PWD:/var/www/html -p 8080:1313 hugo`