20 lines
576 B
Docker
20 lines
576 B
Docker
FROM alpine:latest
|
|
|
|
RUN apk update && apk upgrade
|
|
|
|
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 pip install --upgrade pip
|
|
RUN pip install geopy gpxpy matplotlib numpy pandas
|
|
|
|
RUN git clone https://git.blackfinn.de/python/bicycle-statistics.git
|
|
RUN cd bicycle-statistics && python setup.py install
|
|
RUN rm -rf bicycle-statistics
|
|
|
|
COPY run.sh /bin/
|
|
|
|
ENTRYPOINT [ "/bin/run.sh" ]
|
|
|