Skip to content

Instantly share code, notes, and snippets.

@cboettig
Created April 22, 2016 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cboettig/b4b72cef206567b78a849e08019313cb to your computer and use it in GitHub Desktop.
Save cboettig/b4b72cef206567b78a849e08019313cb to your computer and use it in GitHub Desktop.
FROM rocker/hadleyverse
## So that things like `top` and `less` work correctly
ENV TERM xterm
## Install basic ruby, javascript, and linux utils we need for the site ##
RUN apt-get update \
&& apt-get install -y -t unstable \
bundler \
nodejs \
&& installGithub.r yihui/servr \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/ \
&& rm -rf /tmp/downloaded_packages
COPY Gemfile /Gemfile
RUN bundle update \
&& bundle install
## My git name, must be done for user pid 1000, and root
RUN git config --global user.name 'HeidiSeibold' \
&& git config --global user.email 'heidi.seibold@uzh.ch' \
&& git config --global credential.helper 'cache --timeout=3600' \
&& git config --global push.default simple
### Expose port for jekyll serve ###
EXPOSE 4000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment