2018-07-26 14:41:11 +00:00
|
|
|
FROM alpine:latest
|
2018-07-26 13:29:44 +00:00
|
|
|
|
2018-07-26 14:41:11 +00:00
|
|
|
RUN apk update && apk upgrade
|
2018-07-26 13:29:44 +00:00
|
|
|
|
2018-07-26 14:41:11 +00:00
|
|
|
RUN apk add --update --no-cache python python-dev py-pip git gcc build-base freetype-dev libpng-dev
|
|
|
|
|
|
|
|
RUN yes | pip install --upgrade pip
|
2018-07-26 13:29:44 +00:00
|
|
|
RUN yes | pip install watchdog
|
|
|
|
RUN yes | pip install geopy
|
|
|
|
RUN yes | pip install gpxpy
|
2018-07-26 14:41:11 +00:00
|
|
|
RUN yes | pip install numpy
|
2018-07-26 13:29:44 +00:00
|
|
|
RUN yes | pip install matplotlib
|
|
|
|
RUN yes | pip install pandas
|
|
|
|
|
|
|
|
RUN git clone https://git.blackfinn.de/python/bicycle-statistics.git
|
2018-07-26 14:41:11 +00:00
|
|
|
RUN mkdir -p /lib/systemd/system/
|
2018-07-26 13:29:44 +00:00
|
|
|
RUN cd bicycle-statistics && python setup.py install
|
|
|
|
RUN rm -rf bicycle-statistics
|
|
|
|
|
|
|
|
COPY run.sh /bin/
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/bin/run.sh" ]
|