Wiki in Docker

We will configure docker to build a version of the wiki server running on a recent linux operating system, an image. We will start the docker system and then ask it to run the image and establish that we can visit wiki pages in the running container.

We will explore Eric Dobbs' posted version. hub

FROM node:lts-alpine RUN apk add --update --no-cache \ dumb-init \ git \ jq WORKDIR "/home/node" ARG WIKI_PACKAGE=wiki@0.21.0 ARG WIKI_CLIENT=wiki-client@0.20.1 ARG WIKI_SERVER=wiki-server@0.17.5 RUN su node -c "npm install -g --prefix . $WIKI_PACKAGE" \ && su node -c "cd /home/node/lib/node_modules/wiki && npm install --save $WIKI_CLIENT $WIKI_SERVER" RUN su node -c "mkdir -p .wiki" VOLUME "/home/node/.wiki" EXPOSE 3000 USER node ENV PATH="${PATH}:/home/node/bin" ENTRYPOINT ["dumb-init"] CMD ["wiki", "--farm", "--security_type=friends"]