Skip to content

Commit

Permalink
adding updated dockerfile and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nheimlich committed Sep 22, 2024
1 parent 4cef7cf commit bab8b9a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
14 changes: 6 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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`

0 comments on commit bab8b9a

Please sign in to comment.