Browse Source

step back

pull/2/head
Johannes Schickling 10 years ago
parent
commit
da543ef634
  1. 4
      jekyll/Dockerfile
  2. 6
      jekyll/install.sh

4
jekyll/Dockerfile

@ -1,4 +1,4 @@
FROM debian:jessie
FROM debian:wheezy
MAINTAINER Johannes Schickling "schickling.j@gmail.com" MAINTAINER Johannes Schickling "schickling.j@gmail.com"
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
@ -9,4 +9,4 @@ RUN chmod +x install.sh && ./install.sh && rm install.sh
EXPOSE 4000 EXPOSE 4000
VOLUME ["/source"] VOLUME ["/source"]
WORKDIR /source WORKDIR /source
CMD ["jekyll", "serve"]
CMD ["jekyll", "serve", "--host=0.0.0.0"]

6
jekyll/install.sh

@ -3,11 +3,11 @@
# exit if a command fails # exit if a command fails
set -e set -e
# install ruby 2.1
# install ruby 1.9.1
apt-get update && apt-get install -y ruby ruby-dev build-essential apt-get update && apt-get install -y ruby ruby-dev build-essential
# install jekyll & bundler (therubyracer needed for coffeescript support)
gem install jekyll bundler therubyracer --no-ri --no-rdoc
# install jekyll & bundler (therubyracer needed for coffeescript support, rouge for highlightning)
gem install jekyll bundler therubyracer rouge --no-ri --no-rdoc
# cleanup package manager # cleanup package manager
apt-get remove --purge -y build-essential ruby-dev && apt-get autoclean && apt-get clean apt-get remove --purge -y build-essential ruby-dev && apt-get autoclean && apt-get clean

Loading…
Cancel
Save