Téléverser les fichiers vers "/"

This commit is contained in:
2025-01-03 15:02:39 +01:00
parent 3f5e08bf21
commit 68a7c9cb0f
5 changed files with 35 additions and 0 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
# Utiliser une image Python de base
FROM python:3.9-slim
# Définir le répertoire de travail
WORKDIR /app
# Copier les fichiers de dépendances
COPY requirements.txt .
# Installer les dépendances
RUN pip install --no-cache-dir -r requirements.txt
# Copier les fichiers de l'application
COPY src/ .
# Commande pour exécuter l'application
CMD ["python", "./main.py"]

11
docker-compose.yml Normal file
View File

@@ -0,0 +1,11 @@
version: "3.8"
services:
app:
container_name: tac2100_solar_modbus2mqtt
build: .
volumes:
- ./src:/app
- ./src/config:/usr/src/app/config
restart: unless-stopped

3
exclude.txt Normal file
View File

@@ -0,0 +1,3 @@
modbus2mqtt/env/
modbus2mqttsrc/__pycache__/
modbus2mqtt/*.log

BIN
readme.txt Normal file

Binary file not shown.

4
requirements.txt Normal file
View File

@@ -0,0 +1,4 @@
paho-mqtt==1.6.1
pymodbus==3.5.4
pyModbusTCP==0.2.0
PyYAML==6.0.1