-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
22 lines (16 loc) · 1.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM openjdk:8-jre-alpine
MAINTAINER Christian Kuntzsch <[email protected]>
ENV OTP_BASE /var/otp
ENV OTP_GRAPHS $OTP_BASE/graphs
RUN set -x && \
apk add --no-cache ca-certificates openssl && \
mkdir -p $OTP_BASE/scripting $OTP_GRAPHS/brandenburg && \
wget -O $OTP_BASE/otp.jar https://repo1.maven.org/maven2/org/opentripplanner/otp/1.2.0/otp-1.2.0-shaded.jar && \
wget -O $OTP_BASE/jython.jar http://search.maven.org/remotecontent?filepath=org/python/jython-standalone/2.7.0/jython-standalone-2.7.0.jar \
wget -O $OTP_GRAPHS/brandenburg/brb-gtfs.zip https://transitfeeds.com/p/verkehrsverbund-berlin-brandenburg/213/latest/download && \
wget -P $OTP_GRAPHS/brandenburg http://download.geofabrik.de/europe/germany/brandenburg-latest.osm.pbf && \
java -Xmx8G -jar /var/otp/otp.jar --build /var/otp/graphs/brandenburg
EXPOSE 8080
EXPOSE 8081
ENTRYPOINT [ "java", "-Xmx6G", "-Xverify:none", "-cp", "/var/otp/otp.jar:/var/otp/jython.jar", "org.opentripplanner.standalone.OTPMain" ]
CMD [ "--help" ]