summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-05-05 11:21:47 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-05-05 11:21:47 +0200
commit78aeb7d411d34781225569f7d40eea3d91b198d2 (patch)
tree348d70cbd258963b446799d349f27572b4cf5712 /Dockerfile
parent4696f8d68e130632cbcdb14c2bb1dfe71355e9f6 (diff)
parent2b5780499c3e00e1969c461b864994757a21a8d8 (diff)
Merge branch 'dockerize' of https://github.com/feuerrot/travelynx into feuerrot-dockerize
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..289660a
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,23 @@
+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 \
+ libpq-dev \
+ git \
+ cron \
+ && 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"]