bicycle-statistics/Dockerfile
Thomas Klaehn d414cbaed5 bicycle-statistics: Switch to alpine linux base image
Signed-off-by: Thomas Klaehn <thomas.klaehn@u-blox.com>
2018-07-26 16:41:11 +02:00

22 lines
600 B
Docker

FROM alpine:latest
RUN apk update && apk upgrade
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
RUN yes | pip install watchdog
RUN yes | pip install geopy
RUN yes | pip install gpxpy
RUN yes | pip install numpy
RUN yes | pip install matplotlib
RUN yes | pip install pandas
RUN git clone https://git.blackfinn.de/python/bicycle-statistics.git
RUN mkdir -p /lib/systemd/system/
RUN cd bicycle-statistics && python setup.py install
RUN rm -rf bicycle-statistics
COPY run.sh /bin/
ENTRYPOINT [ "/bin/run.sh" ]