You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
409 B
Plaintext
13 lines
409 B
Plaintext
1 year ago
|
FROM ubuntu:20.04
|
||
|
|
||
|
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" ]
|