29cae330d0
Use a container to preview the documentation for those of us who cannot or do not want to install npm/nodejs on their machines. - Add a Dockefile to create a docker image containing nodejs and the software needed to serve the documentation - Extend README.md with the option to use the Dockerfile to preview the documentation
15 lines
251 B
Docker
15 lines
251 B
Docker
FROM node:12.22.12-stretch-slim
|
|
|
|
RUN apt-get update && apt-get -y upgrade
|
|
|
|
RUN apt-get install -y git
|
|
|
|
RUN mkdir /opt/documentation && chown node: /opt/documentation
|
|
|
|
USER node
|
|
|
|
WORKDIR /opt/documentation
|
|
|
|
RUN npm install
|
|
|
|
CMD [ "npm", "run", "serve"] |