add geoip node mapping and cleanup dockerfiles

This commit is contained in:
lza_menace
2023-10-10 23:10:14 -07:00
parent 4650866877
commit 086b023dfc
7 changed files with 498 additions and 88 deletions

13
dockerfiles/nodemapper Normal file
View File

@@ -0,0 +1,13 @@
FROM ubuntu:22.04 as OG
WORKDIR /srv/nodemapper
RUN apt update && apt install wget python3 python3-venv -y
RUN python3 -m venv .venv
RUN .venv/bin/pip install flask==3.0.0
RUN .venv/bin/pip install geoip2==4.7.0
RUN wget https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-City.mmdb -qO ./geoip.mmdb
COPY nodemapper.py app.py
ENTRYPOINT [ ".venv/bin/flask", "--app", "app", "run", "--host", "0.0.0.0" ]