halkyon/deploy/photon/Dockerfile
Tizian 「ティツィアーン」 edd2df79bd
feat(train): search for places in the route planner, through Photon (ADR 0030, D50)
A `search` endpoint asks the instance's Photon (compose.search.yaml, Europe's
database from GraphHopper, renewed monthly) for people signed in, limited and
unlogged. The planner gets a field over its map: the places found nearest the
map's centre first, in the app's language; one chosen is the next waypoint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-30 15:53:07 +01:00

21 lines
893 B
Docker

# Photon for Halkyon Train's place search (ADR 0030, D50): its release, checked against
# GitHub's SHA-256 of it, on Eclipse Temurin's Java 21, which it needs. Built from the
# repository root:
#
# docker build -f deploy/photon/Dockerfile .
#
# The same image renews the database (data.sh), so it carries curl and pbzip2.
FROM eclipse-temurin:21-jre-noble
# Photon 1.3.0, released 7 Aug 2026 (Apache-2.0).
ADD --checksum=sha256:a89707c0045e4807b2a1180e132e68e108d998709f48b6c94b98a6e281f571a5 \
https://github.com/komoot/photon/releases/download/1.3.0/photon-1.3.0.jar /app/photon.jar
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl ca-certificates pbzip2 \
&& rm -rf /var/lib/apt/lists/* \
&& chmod 644 /app/photon.jar
COPY --chmod=755 deploy/photon/serve.sh /app/serve.sh
COPY --chmod=755 deploy/photon/data.sh /app/data.sh
EXPOSE 2322
CMD ["/app/serve.sh"]