diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-05-05 11:21:47 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-05-05 11:21:47 +0200 |
commit | 78aeb7d411d34781225569f7d40eea3d91b198d2 (patch) | |
tree | 348d70cbd258963b446799d349f27572b4cf5712 /Dockerfile | |
parent | 4696f8d68e130632cbcdb14c2bb1dfe71355e9f6 (diff) | |
parent | 2b5780499c3e00e1969c461b864994757a21a8d8 (diff) |
Merge branch 'dockerize' of https://github.com/feuerrot/travelynx into feuerrot-dockerize
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 23 |
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"] |