Demo entry 6406905

yanqd0/gitbook

   

Submitted by Yan QiDong on May 25, 2017 at 04:11
Language: Docker. Code size: 360 Bytes.

FROM node:7.9.0-alpine

MAINTAINER Yan QiDong <yanqd0@outlook.com>

ARG VERSION=3.2.2

LABEL version=$VERSION

RUN npm install --global gitbook-cli \
        && gitbook fetch ${VERSION} \
        && npm cache clear \
        && rm -rf /tmp/*

WORKDIR /srv/gitbook

VOLUME /srv/gitbook

EXPOSE 4000 35729

CMD gitbook install && gitbook serve

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).