29 lines
766 B
Docker
29 lines
766 B
Docker
FROM alpine:latest
|
|
|
|
RUN apk update && apk upgrade
|
|
|
|
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
|
|
|
|
RUN apk add jpeg-dev zlib-dev
|
|
|
|
RUN pip install --upgrade pip && \
|
|
pip install wheel && \
|
|
pip install cython && \
|
|
pip install numpy && \
|
|
pip install geopy && \
|
|
pip install gpxpy && \
|
|
pip install matplotlib && \
|
|
pip install pandas==1.0.0
|
|
|
|
RUN git clone https://git.blackfinn.de/python/bicycle-statistics.git
|
|
RUN cd bicycle-statistics && python3 setup.py install
|
|
RUN rm -rf bicycle-statistics
|
|
|
|
COPY run.sh /bin/
|
|
|
|
ENTRYPOINT [ "/bin/run.sh" ]
|
|
|