Added new Docker implementation

This commit is contained in:
2026-01-11 19:24:33 +01:00
parent 532b078411
commit 35ebcf9a39
6 changed files with 529 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
FROM alpine:latest
RUN apk update && \
apk add python3 py3-pip su-exec curl wget && \
mkdir -p /netflowParser
WORKDIR /netflowParser
# Copy over IP2Loc, INFLUXDB, proto and wahtDomain
COPY ../Code/* /netflowParser/
COPY ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
RUN python3 -m venv venv && \
/netflowParser/venv/bin/python3 -m pip install --upgrade pip && \
/netflowParser/venv/bin/pip3 install -r requirements.txt
# venv/bin/pip3 install -r requirements.txt
# Set user. No need for root past this point
# USER "${USER}"
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 2055
CMD ["/netflowParser/venv/bin/python3", "/netflowParser/INFLUXDB.py"]