forked from skullydazed/docker2mqtt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.armv6
37 lines (30 loc) · 932 Bytes
/
Dockerfile.armv6
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
# Usa una base image di Raspbian compatibile con ARMv6
FROM balenalib/rpi-raspbian:bullseye
# Imposta le variabili d'ambiente
ENV LC_ALL=C.UTF-8 \
LANG=C.UTF-8 \
PYTHONUNBUFFERED=1
# Installa le dipendenze di sistema
RUN apt-get update && \
apt-get install --no-install-recommends -y \
apt-transport-https \
ca-certificates \
curl \
gnupg \
gnupg-agent \
software-properties-common \
lsb-release \
python3-pip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Installa Docker CLI usando il metodo di installazione conveniente
RUN curl -fsSL https://get.docker.com | sh
# Installa le dipendenze Python
RUN pip3 install --no-cache-dir paho-mqtt
# Crea la struttura della directory dell'app
WORKDIR /app
# Copia il codice sorgente
COPY src/docker2mqttenh.py /app/
RUN chmod +x /app/docker2mqttenh.py
# Imposta l'entrypoint
ENTRYPOINT ["python3", "/app/docker2mqttenh.py"]