Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (20 sloc) 713 Bytes
FROM python:2
MAINTAINER Reittiopas version: 0.1
RUN \
pip install transitfeed && \
pip install protobuf && \
pip install flask && \
pip install python-dateutil && \
pip install pytz
ENV DIR_PATH=/opt/siri2gtfsrt
RUN mkdir -p ${DIR_PATH}
WORKDIR ${DIR_PATH}
ADD . ${DIR_PATH}
ENV TRAIN_URL=http://api.digitransit.fi/realtime/raildigitraffic2gtfsrt/v1/hsl
ENV TRIP_UPDATE_URL=http://api.digitransit.fi/realtime/service-alerts/v1/
ENV HSL_URL=http://api.digitransit.fi/realtime/navigator-server/v1/siriaccess/vm/json?operatorRef=HSL
ENV JOLI_URL=http://data.itsfactory.fi/journeys/api/1/vehicle-activity
ENV FOLI_URL=http://data.foli.fi/siri/vm
ENV PORT=8080
EXPOSE ${PORT}
CMD python siri2gtfsrt.py
You can’t perform that action at this time.