forked from motis-project/motis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (35 loc) · 856 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM alpine:3.17
ARG TARGETARCH
ADD motis-linux-$TARGETARCH/motis-linux-$TARGETARCH.tar.bz2 /
RUN addgroup -S motis && adduser -S motis -G motis && \
mkdir /data && \
chown motis:motis /data && \
echo -e "\
server.static_path=/motis/web\n\
\n\
intermodal.router=tripbased\n\
\n\
ris.db=/data/ris.mdb\n\
\n\
[import]\n\
paths=schedule:/input/schedule\n\
paths=osm:/input/osm.pbf\n\
data_dir=/data\n\
\n\
[tiles]\n\
profile=/motis/tiles-profiles/background.lua\n\
\n\
[osrm]\n\
profiles=/motis/osrm-profiles/car.lua\n\
profiles=/motis/osrm-profiles/bike.lua\n\
profiles=/motis/osrm-profiles/bus.lua\n\
\n\
[ppr]\n\
profile=/motis/ppr-profiles/default.json\n\
\n" > /system_config.ini
EXPOSE 8080
VOLUME ["/data"]
VOLUME ["/input"]
WORKDIR /motis
USER motis
CMD ["/motis/motis", "--system_config", "/system_config.ini", "-c", "/input/config.ini"]