mirror of
https://github.com/Oxbian/SIDPS.git
synced 2025-07-07 20:33:51 +02:00
feat: config file + database connection / dockerfile
This commit is contained in:
@ -3,10 +3,16 @@ FROM python:alpine3.20
|
||||
# Installation des paquets nécessaires pour scapy
|
||||
RUN apk -U upgrade && \
|
||||
apk add --no-cache libpcap libpcap-dev gcc musl-dev libffi-dev
|
||||
RUN pip install scapy
|
||||
RUN pip install scapy mysql-connector-python
|
||||
|
||||
# Copier le script de la sonde IDS
|
||||
#COPY ids.py /ids.py
|
||||
# Copier le script de l'idps
|
||||
WORKDIR /app
|
||||
|
||||
# Copier le contenu du répertoire 'idps' du contexte de build vers '/app/idps' dans le conteneur
|
||||
COPY idps /app/ids
|
||||
|
||||
# Copie du fichier de configuration
|
||||
COPY config.json /app/config.json
|
||||
|
||||
# Lancer le script de la sonde IDS
|
||||
#CMD ["python", "/ids.py"]
|
||||
CMD ["python3", "/app/ids/ids.py"]
|
||||
|
Reference in New Issue
Block a user