Dockerfile for GitBook

This commit is contained in:
Ben Hall 2019-03-26 10:26:30 +00:00
parent db612738e8
commit dc289fc60e
1 changed files with 13 additions and 0 deletions

13
docs/book/Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM python:3.7
EXPOSE 4000
RUN curl -sL https://deb.nodesource.com/setup_11.x | bash
RUN apt-get update && apt-get install -y nodejs npm && apt-get clean;
RUN npm install gitbook-cli -g
WORKDIR /opt/book/
COPY . /opt/book/
RUN npm install
CMD ["gitbook", "serve"]