FROM node:lts-alpine # Install Git RUN apk --no-cache add git # Set the working directory WORKDIR /app # Git clone the source code RUN git clone https://github.com/11ty/eleventy.git . # Remove Git RUN apk del git # Install 11ty with plugins RUN npm install --no-save -g @11ty/eleventy \ luxon \ html-minifier \ clean-css \ markdown-it-attrs \ markdown-it-bracketed-spans \ markdown-it-eleventy-img \ @11ty/eleventy-navigation && \ rm -rf ~/.npm # Start the application CMD [ "npm", "start" ]