summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał 'rysiek' Woźniak <rysiek@hackerspace.pl>2017-02-22 16:40:30 +0100
committerMichał 'rysiek' Woźniak <rysiek@hackerspace.pl>2017-02-22 16:40:30 +0100
commitcf8d1710bb241e3ca6f1ba5b46c9e6aa4e632912 (patch)
tree46ab84167b74f40483fbab38b03085f7cbc67155
parenteeb9c6c18c1e914370afc9cbf59af68b1d37f497 (diff)
downloadkuvert-cf8d1710bb241e3ca6f1ba5b46c9e6aa4e632912.tar.gz
kuvert-cf8d1710bb241e3ca6f1ba5b46c9e6aa4e632912.tar.bz2
kuvert-cf8d1710bb241e3ca6f1ba5b46c9e6aa4e632912.tar.xz
kuvert-cf8d1710bb241e3ca6f1ba5b46c9e6aa4e632912.zip
preliminary Dockerfile
-rw-r--r--Dockerfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..04c78d3
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,22 @@
+FROM perl
+MAINTAINER Michał "rysiek" Woźniak <rysiek@occrp.org>
+
+# envvars -- runscript will handle these
+ENV KUVERT_USER kuvert
+ENV KUVERT_GROUP kuvert
+ENV KUVERT_UID 1000
+ENV KUVERT_GID 1000
+ENV KUVERT_HOME /home/kuvert
+
+# install the needed CPAN modules
+RUN echo | cpan -i MIME::Parser Mail::Address Net::SMTPS Sys::Hostname Net::Server::Mail Authen::SASL IO::Socket::INET Filehandle File::Slurp File::Temp Fcntl Time::HiRes
+
+COPY ./ /usr/local/src/kuvert/
+RUN cd /usr/local/src/kuvert/ && \
+ make && \
+ make install
+
+RUN chmod a+x /usr/local/src/kuvert/run.sh
+
+ENTRYPOINT ["/usr/local/src/kuvert/run.sh"]
+CMD ["kuvert"] \ No newline at end of file