Skip to content

Commit

Permalink
adding dockerfile for local development
Browse files Browse the repository at this point in the history
  • Loading branch information
nheimlich committed Sep 22, 2024
1 parent 3a62877 commit 4cef7cf
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:22-alpine

ENV VER="v2.0.1"

RUN addgroup -S web && adduser -S web -G web

WORKDIR /app

RUN npm install -g @11ty/eleventy@$VER && \
npm cache clean --force

USER web

EXPOSE 8080

ENTRYPOINT ["npx", "-y", "@11ty/eleventy", "--serve"]

0 comments on commit 4cef7cf

Please sign in to comment.