forked from vitaliy-sk/keenetic-grafana-monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (27 loc) · 1.09 KB
/
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
26
27
28
29
30
31
32
33
34
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
# * Docker İmajı
FROM python:3.11.8-slim-bookworm
# * Python Standart Değişkenler
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PYTHONIOENCODING="UTF-8"
# * Dil ve Bölge
ENV LANGUAGE="tr_TR.UTF-8" LANG="tr_TR.UTF-8" LC_ALL="tr_TR.UTF-8" TZ="Europe/Istanbul"
# * Çalışma Alanı
WORKDIR /usr/src/keenetic_exporter
COPY ./ /usr/src/keenetic_exporter
# ? Sistem Kurulumları ve Gereksiz Dosyaların Silinmesi
RUN apt-get update -y && \
apt-get install --no-install-recommends -y \
git \
# ffmpeg \
# opus-tools \
locales && \
sed -i -e 's/# tr_TR.UTF-8 UTF-8/tr_TR.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# * Gerekli Paketlerin Yüklenmesi
RUN python3 -m pip install --upgrade pip && \
python3 -m pip install --no-cache-dir -U setuptools wheel && \
python3 -m pip install --no-cache-dir -Ur requirements.txt
# * Python Çalıştırılması
CMD ["python3", "start.py"]