diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-06-01 12:46:31 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-06-01 12:46:31 +0200 |
commit | aee1b1085042715ed42640449599ace441d854c9 (patch) | |
tree | deb4f9c425fe37fcdb2072ca6408de5ee66b6152 | |
parent | b0e0ec8739e0941b777d56cb5eca973dd4a5155a (diff) |
Add CPAN and Docker build files
-rw-r--r-- | Dockerfile | 22 | ||||
-rw-r--r-- | cpanfile | 9 | ||||
-rw-r--r-- | docker-run.sh | 5 |
3 files changed, 36 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"] diff --git a/cpanfile b/cpanfile new file mode 100644 index 0000000..929fa4d --- /dev/null +++ b/cpanfile @@ -0,0 +1,9 @@ +requires 'Cache'; +requires 'DateTime'; +requires 'DateTime::Format::Strptime'; +requires 'File::Slurp'; +requires 'Mojolicious'; +requires 'Travel::Status::DE::DBWagenreihung'; +requires 'Travel::Status::DE::DeutscheBahn'; +requires 'Travel::Status::DE::IRIS'; +requires 'XML::LibXML'; diff --git a/docker-run.sh b/docker-run.sh new file mode 100644 index 0000000..542f1de --- /dev/null +++ b/docker-run.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +set -eu + +exec /usr/local/bin/hypnotoad -f index.pl |