radeksmg

Docker docs in container

Sep 14th, 2018
419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.86 KB | None | 0 0
  1. docker create --hostname docker.docs.com --name docker.docs.com  -i -t   docker.io/fedora /bin/bash
  2. docker start -a -i <UUID>
  3.  
  4.  
  5.  
  6.  
  7. FROM docker.io/fedora
  8. MAINTAINER Radoslaw Smigielski "[email protected]"
  9.  
  10. LABEL vendor=Radoslaw\ Smigielski \
  11.       com.example.is-beta= \
  12.       com.example.is-production="yes" \
  13.       com.example.version="0.0.1-beta" \
  14.       com.example.release-date="2015-02-12"
  15.  
  16. RUN \
  17.     yum install -y ruby ruby-devel zlib-devel make gcc gcc-c++ redhat-rpm-config git && \
  18.     gem install bundler rubygems-bundler jekyll --no-rdoc --no-ri
  19. RUN \
  20.     cd /usr/src && \
  21.     git clone --single-branch --branch master --depth 1 https://github.com/docker/docker.github.io.git && \
  22.     cd docker.github.io && \
  23.     gem install --no-rdoc --no-ri --file Gemfile
  24.  
  25. EXPOSE 4000
  26. ENTRYPOINT ['/usr/local/bin/jekyll', 'server', '--host=0.0.0.0']
Advertisement
Add Comment
Please, Sign In to add comment