summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authornetworkException <git@nwex.de>2025-04-18 13:33:55 +0200
committernetworkException <git@nwex.de>2025-04-18 13:36:24 +0200
commit78b9b451b2da03a3d3261247bbbdde2f8195919d (patch)
tree1a5d695dfd3e1aee4405930d5b028a3963651bef /Dockerfile
Initial version of Travel::Status::MOTIS
This patch contains the initial implementation of Travel::Status::MOTIS, an interface to MOTIS routing services for departures, trips and stop search based on Travel::Status::DE::DBRIS. While MOTIS' focus is on intermodal routing, this module has been written for use in https://finalrewind.org/projects/travelynx, as such it focuses on departures at stops and trips. As MOTIS is open source and can be self hosted, there are multiple services (sourced from the transport-apis repository located as a submodule in `ext/`), available: Currently RNV for local transit in Mannheim, Germany and surrounding cities and transitous for worldwide crowdsourced tranit feeds. In addition to scheduled stops and trips this module supports realtime delay predictions, tracks, polylines, cancellations, headsigns and route colors whenever available.
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..6b797b5
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,23 @@
+FROM perl:5.30-slim
+
+COPY bin/ /app/bin/
+COPY lib/ /app/lib/
+COPY Build.PL cpanfile* /app/
+
+WORKDIR /app
+
+ARG DEBIAN_FRONTEND=noninteractive
+ARG APT_LISTCHANGES_FRONTEND=none
+
+RUN apt-get update \
+ && apt-get -y --no-install-recommends install ca-certificates curl gcc libc6-dev libssl1.1 libssl-dev make zlib1g-dev \
+ && cpanm -n --no-man-pages --installdeps . \
+ && perl Build.PL \
+ && perl Build \
+ && rm -rf ~/.cpanm \
+ && apt-get -y purge curl gcc libc6-dev libssl-dev make zlib1g-dev \
+ && apt-get -y autoremove \
+ && apt-get -y clean \
+ && rm -rf /var/cache/apt/* /var/lib/apt/lists/*
+
+ENTRYPOINT ["perl", "-Ilib", "bin/motis"]