forked from StanislawHorna/Internet_SpeedTest_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (24 loc) · 861 Bytes
/
Dockerfile
File metadata and controls
37 lines (24 loc) · 861 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
31
32
33
34
35
36
37
### DESCRIPTION
# Docker file to create Docker image for Internet Speed test exporter.
### INPUTS
#
### CHANGE LOG
# Author: Stanisław Horna
# GitHub Repository: https://github.com/StanislawHornaGitHub/Internet_SpeedTest_exporter
# Created: 27-Jul-2024
# Version: 1.1
# Date Who What
# 2024-07-29 Staniław Horna Fix timezone setup
FROM ubuntu:22.04
ENV API_PORT="8000"
ENV INTERFACE_IP="0.0.0.0"
ENV TZ="Europe/Warsaw"
RUN apt update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install tzdata
RUN apt install -y curl python3-dev pip
RUN curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | bash \
&& apt install -y speedtest iputils-ping traceroute
COPY ./app /app
WORKDIR /app
RUN pip install -r ./requirements.txt
CMD [ "python3", "-u", "./main.py" ]