diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b1f0cc4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,29 @@ +FROM debian:wheezy +MAINTAINER Paul van Tilburg "paul@luon.net" + +ENV DEBIAN_FRONTEND noninteractive +RUN apt-get update && apt-get install -y --no-install-recommends \ + camping \ + ruby-activerecord-3.2 \ + ruby-sqlite3 \ + ruby-mab \ + ruby-actionpack-3.2 \ + ruby-sass \ + thin \ + texlive-latex-base \ + texlive-latex-extra \ + rubber + +RUN mkdir -p /home/camping/stoptime +ADD . /home/camping/stoptime +WORKDIR /home/camping/stoptime +ENV HOME /home/camping + +# Ugh, necessary because not available in backports +# Before build on Jessie/Sid: apt-get download ruby-mab +RUN dpkg -i ruby-mab_0.0.3-1_all.deb + +RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + +EXPOSE 3301 +CMD ["/usr/bin/camping", "stoptime.rb"]