summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-06-01 12:46:31 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-06-01 12:46:31 +0200
commitaee1b1085042715ed42640449599ace441d854c9 (patch)
treedeb4f9c425fe37fcdb2072ca6408de5ee66b6152 /Dockerfile
parentb0e0ec8739e0941b777d56cb5eca973dd4a5155a (diff)
Add CPAN and Docker build files
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..5b93afd
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,22 @@
+FROM debian:stretch-slim
+
+ARG DEBIAN_FRONTEND=noninteractive
+
+COPY cpanfile /app/cpanfile
+WORKDIR /app
+
+RUN apt-get update && apt-get install --no-install-recommends -y \
+ cpanminus \
+ build-essential \
+ git \
+ liblwp-protocol-https-perl \
+ && cpanm -in --no-man-pages --installdeps . \
+ && rm -rf ~/.cpanm \
+ && apt-get purge -y \
+ build-essential \
+ cpanminus \
+ && apt-get autoremove -y
+
+COPY . /app
+
+CMD ["/app/docker-run.sh"]