diff --git a/Dockerfile b/Dockerfile index 861ae61..b0d66bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,14 @@ -FROM node:22-alpine +# Node.js 22 on Alpine 3.20 running 11ty via NPX +FROM node:22-alpine3.20 ENV VER="v2.0.1" -RUN addgroup -S web && adduser -S web -G web +RUN addgroup -S nhlabs && adduser -S nhlabs -G nhlabs WORKDIR /app - -RUN npm install -g @11ty/eleventy@$VER && \ - npm cache clean --force - -USER web +USER nhlabs EXPOSE 8080 -ENTRYPOINT ["npx", "-y", "@11ty/eleventy", "--serve"] +ENTRYPOINT [ "npx", "-y", "@11ty/eleventy", "--serve" ] + diff --git a/README.md b/README.md index 2ea4ab3..e9b2dd0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ # nheimlich.github.io -[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) + +### Local Development + +`docker run -d -p8080:8080 -v $PWD:/app ghcr.io/nheimlich/website:v1.0.0`