From 6b67f6812e0856ff395a58537517d3e62af7d950 Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Wed, 14 Aug 2019 13:19:25 +0200 Subject: [PATCH] Move dependencies do bicycle-statistic's setup. --- Dockerfile | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index d322611..7a076ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,21 +2,15 @@ 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 apk add --update --no-cache python3 python3-dev git build-base freetype-dev && \ + if [ ! -e /usr/bin/python ]; then ln -f /usr/bin/python3 /usr/bin/python ; fi && \ + if [ ! -e /usr/bin/pip ]; then ln -f /usr/bin/pip3 /usr/bin/pip ; fi 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" ] \ No newline at end of file +ENTRYPOINT [ "/bin/run.sh" ] +