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
|
|
|
|
2021-02-01 09:35:15 +00:00
|
|
|
RUN apk add --update --no-cache python3 python3-dev py-pip 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
|
2018-07-26 13:29:44 +00:00
|
|
|
|
2020-08-11 12:27:09 +00:00
|
|
|
RUN apk add jpeg-dev zlib-dev
|
|
|
|
|
2020-01-08 12:00:02 +00:00
|
|
|
RUN pip install --upgrade pip && \
|
2021-02-01 09:35:15 +00:00
|
|
|
pip install wheel && \
|
2020-01-08 12:00:02 +00:00
|
|
|
pip install cython && \
|
|
|
|
pip install numpy && \
|
|
|
|
pip install geopy && \
|
|
|
|
pip install gpxpy && \
|
|
|
|
pip install matplotlib && \
|
2020-08-11 12:27:09 +00:00
|
|
|
pip install pandas==1.0.0
|
2020-01-08 11:20:45 +00:00
|
|
|
|
2018-07-26 13:29:44 +00:00
|
|
|
RUN git clone https://git.blackfinn.de/python/bicycle-statistics.git
|
2021-02-01 09:35:15 +00:00
|
|
|
RUN cd bicycle-statistics && python3 setup.py install
|
2018-07-26 13:29:44 +00:00
|
|
|
RUN rm -rf bicycle-statistics
|
|
|
|
|
|
|
|
COPY run.sh /bin/
|
|
|
|
|
2019-08-14 11:19:25 +00:00
|
|
|
ENTRYPOINT [ "/bin/run.sh" ]
|
|
|
|
|