all repos — tnt-search @ ab5a058087dbeccfc9b5041c5140bc9347b65fee

A search tool for TNTVillage's dump.

add docker instructions and requirements
Marco Andronaco andronacomarco@gmail.com
Sun, 09 Jul 2023 16:30:25 +0200
commit

ab5a058087dbeccfc9b5041c5140bc9347b65fee

parent

42abf95eba1f53e81a4e7e73827aa43a3269349d

3 files changed, 32 insertions(+), 0 deletions(-)

jump to
A Dockerfile

@@ -0,0 +1,6 @@

+FROM python:3-alpine + +COPY . . +RUN pip install --upgrade pip +RUN pip install -r requirements.txt +CMD ["waitress-serve", "--host", "127.0.0.1", "--port", "5000", "main:app"]
A README.md

@@ -0,0 +1,18 @@

+# TNTVillage Search Tool + +## Instructions + +### Bare metal +``` +python -m venv venv +source venv\bin\activate +pip install --upgrade pip +pip install -r requirements.txt +waitress-serve --host 127.0.0.1 --port 5000 main:app +``` + +### Docker +``` +docker build -t tnt-search . +docker run -d -p 5000:5000 tnt-search +```
A requirements.txt

@@ -0,0 +1,8 @@

+blinker==1.6.2 +click==8.1.4 +Flask==2.3.2 +itsdangerous==2.1.2 +Jinja2==3.1.2 +MarkupSafe==2.1.3 +waitress==2.1.2 +Werkzeug==2.3.6