Created
April 22, 2016 19:01
-
-
Save cboettig/b4b72cef206567b78a849e08019313cb to your computer and use it in GitHub Desktop.
This file contains 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 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