add geoip node mapping and cleanup dockerfiles
This commit is contained in:
13
dockerfiles/nodemapper
Normal file
13
dockerfiles/nodemapper
Normal 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" ]
|
||||
Reference in New Issue
Block a user