From 52e49f1752528fbc15d99ddf5d2d2fe8e82c5210 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Sat, 18 Oct 2014 21:29:40 +0200 Subject: [PATCH] Add Dockerfile for deployment on Debian Wheezy --- Dockerfile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Dockerfile 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"]