forked from github/markup
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Dockerfile |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
FROM ubuntu:trusty | ||
|
||
RUN apt-get update -qq | ||
RUN apt-get install -y apt-transport-https | ||
|
||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 379CE192D401AB61 | ||
RUN echo "deb https://dl.bintray.com/nxadm/rakudo-pkg-debs `lsb_release -cs` main" | tee -a /etc/apt/sources.list.d/rakudo-pkg.list | ||
RUN apt-get update -qq | ||
|
||
RUN apt-get install -y \ | ||
perl rakudo-pkg curl git build-essential python python-pip \ | ||
libssl-dev libreadline-dev zlib1g-dev \ | ||
libicu-dev cmake pkg-config | ||
|
||
ENV PATH $PATH:/opt/rakudo-pkg/bin | ||
RUN install-zef-as-user && zef install Pod::To::HTML | ||
|
||
RUN curl -L http://cpanmin.us | perl - App::cpanminus | ||
RUN cpanm --installdeps --notest Pod::Simple | ||
|
||
RUN pip install docutils | ||
|
||
ENV PATH $PATH:/root/.rbenv/bin:/root/.rbenv/shims | ||
RUN curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer | bash | ||
RUN rbenv install 2.4.1 | ||
RUN rbenv global 2.4.1 | ||
RUN rbenv rehash | ||
|
||
RUN gem install bundler | ||
|
||
WORKDIR /data/github-markup | ||
COPY github-markup.gemspec . | ||
COPY Gemfile . | ||
COPY Gemfile.lock . | ||
COPY lib/github-markup.rb lib/github-markup.rb | ||
RUN bundle | ||
|
||
ENV LC_ALL en_US.UTF-8 | ||
RUN locale-gen en_US.UTF-8 |