-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (18 loc) · 751 Bytes
/
Dockerfile
File metadata and controls
30 lines (18 loc) · 751 Bytes
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
26
27
28
29
30
FROM ubuntu:24.10
LABEL maintainer="tomer.klein@gmail.com"
RUN apt update -yqq && \
apt install -yqq python3-pip && \
apt install -yqq libffi-dev && \
apt install -yqq libssl-dev && \
apt install -yqq curl && \
apt install -yqq speedtest-cli && \
apt install -yqq wget
ENV API_KEY ""
COPY requirements.txt /tmp
RUN pip3 install --upgrade pip --no-cache-dir && \
pip3 install --upgrade setuptools --no-cache-dir
RUN pip3 install -r /tmp/requirements.txt
RUN wget https://raw.githubusercontent.com/sivel/speedtest-cli/v2.1.3/speedtest.py -O /usr/lib/python3/dist-packages/speedtest.py
RUN mkdir /opt/dockerbot
COPY dockerbot.py /opt/dockerbot
ENTRYPOINT ["/usr/bin/python3", "/opt/dockerbot/dockerbot.py"]