Documentation/Dockerfile
Jan Klippel 29cae330d0 Add Dockerfile to serve documentation
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
2022-04-14 12:34:21 +02:00

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"]