16 lines
471 B
Docker
16 lines
471 B
Docker
FROM docker.io/eclipse-temurin:21-jdk AS builder
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
git ca-certificates maven \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN git clone --depth=1 https://github.com/komoot/photon.git /photon
|
|
RUN cd /photon && mvn -q package -DskipTests
|
|
|
|
FROM docker.io/eclipse-temurin:21-jre
|
|
|
|
COPY --from=builder /photon/target/photon-*.jar /photon.jar
|
|
|
|
WORKDIR /photon
|
|
EXPOSE 2322
|
|
ENTRYPOINT ["java", "-jar", "/photon.jar"]
|