diff options
author | Marco Andronaco <andronacomarco@gmail.com> | 2023-07-09 16:30:25 +0200 |
---|---|---|
committer | Marco Andronaco <andronacomarco@gmail.com> | 2023-07-09 16:30:25 +0200 |
commit | ab5a058087dbeccfc9b5041c5140bc9347b65fee (patch) | |
tree | 0ab5458fdbfb6d6d6dc324272054509099a7ad8d | |
parent | 42abf95eba1f53e81a4e7e73827aa43a3269349d (diff) | |
download | tnt-search-ab5a058087dbeccfc9b5041c5140bc9347b65fee.tar.gz |
add docker instructions and requirements
-rw-r--r-- | Dockerfile | 6 | ||||
-rw-r--r-- | README.md | 18 | ||||
-rw-r--r-- | requirements.txt | 8 |
3 files changed, 32 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..041998f --- /dev/null +++ b/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"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..0f5fac2 --- /dev/null +++ b/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 +``` diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5c13228 --- /dev/null +++ b/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 |