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.
14 lines
423 B
Plaintext
14 lines
423 B
Plaintext
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 dockerfiles/nodemapper.py app.py
|
|
|
|
ENTRYPOINT [ ".venv/bin/flask", "--app", "app", "run", "--host", "::" ]
|