Created
May 28, 2015 06:23
-
-
Save bradbergeron-us/92d64b9f35f8b2e85871 to your computer and use it in GitHub Desktop.
Template File for Configuring Dockerfile with Jekyll Site
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:14.04 | |
RUN apt-get update | |
RUN apt-get install -y git curl nano build-essential libssl-dev libreadline-dev libffi-dev libgdbm-dev | |
# install ruby | |
ADD http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.bz2 / | |
RUN tar xvjf ruby-2.1.2.tar.bz2 && cd ruby-2.1.2 && ./configure --disable-install-doc --with-openssl-dir=/usr/bin && make && make install && cd / && rm -rf /ruby-2.1.2 | |
RUN gem install sass compass jekyll --no-ri --no-rdoc | |
# install node, npm, bower, grunt | |
RUN apt-get install -y software-properties-common python-software-properties git curl nano nginx | |
RUN apt-get install -y nodejs nodejs-dev npm | |
RUN ln -s /usr/bin/nodejs /usr/bin/node | |
RUN npm install -g bower grunt grunt-cli | |
RUN mkdir /apps | |
ADD . /apps/bp | |
WORKDIR /apps/bp | |
EXPOSE 4000 | |
CMD ["jekyll", "serve", "--watch", "--config", "_dev_config.yml"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment