TODO List

1、只需简单两步,轻松缩减 Node.js 应用的镜像大小:https://blog.csdn.net/dt763C/article/details/79799964

2、iterm2配置学习
3、Gitbook环境搭建学习。
启动容器(需要有readme文件,Readme.md># Introduction):docker run -p 4000:4000 -v $PWD/gitbook:/srv/gitbook --name gitbook -d --restart=always linimbus/gitbook_tools

通过命令进入容器工作:docker exec -it gitbook /bin/bash

Docker官方仓库:linimbus/gitbook_tools
https://hub.docker.com/r/linimbus/gitbook_tools

GitHub仓库:https://github.com/lixiangyun/gitbook_tools

改进如下镜像Dockerfile,只使用一个run

FROM node:6-slim

MAINTAINER linimbus 

ARG VERSION=3.2.0

LABEL version=$VERSION

# add dependent packages
RUN apt-get update && apt-get install -y calibre nodejs-legacy

# clean up useless packages
RUN apt-get clean && apt-get autoclean

RUN npm install gitbook-cli -g
RUN npm install svgexport -g

RUN gitbook fetch ${VERSION}
RUN npm cache clear
RUN rm -rf /tmp/*

WORKDIR /srv/gitbook
VOLUME /srv/gitbook /srv/html

EXPOSE 4000 35729
CMD /usr/local/bin/gitbook serve

你可能感兴趣的:(TODO List)