Commit aee1b108 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Add CPAN and Docker build files

parent b0e0ec87
Loading
Loading
Loading
Loading

Dockerfile

0 → 100644
+22 −0
Original line number Diff line number Diff line
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"]

cpanfile

0 → 100644
+9 −0
Original line number Diff line number Diff line
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';

docker-run.sh

0 → 100644
+5 −0
Original line number Diff line number Diff line
#!/bin/sh

set -eu

exec /usr/local/bin/hypnotoad -f index.pl