forked from aidengilmartin/speedtest-to-influxdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (20 loc) · 885 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM python:3.8-slim-buster
LABEL maintainer="Aiden Gilmartin" \
description="Speedtest to InfluxDB data bridge"
# Install dependencies
ENV DEBIAN_FRONTEND=noninteractive
COPY requirements.txt /
RUN apt-get update && \
apt-get dist-upgrade -y && \
apt-get -q -y install --no-install-recommends apt-utils gnupg1 apt-transport-https dirmngr && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 379CE192D401AB61 && \
echo "deb https://ookla.bintray.com/debian buster main" | tee /etc/apt/sources.list.d/speedtest.list && \
apt-get update && apt-get -q -y install speedtest && \
apt-get -q -y autoremove && \
apt-get -q -y clean && \
rm -rf /var/lib/apt/lists/* && \
pip3 install -r /requirements.txt
# Final setup & execution
COPY speedtest2influx.py /app/speedtest2influx.py
WORKDIR /app
CMD ["python3", "-u", "speedtest2influx.py"]