0
0
docker-images/dockerfiles/11ty.Dockerfile

27 lines
530 B
Docker
Raw Normal View History

2023-11-04 06:38:42 +08:00
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" ]