From bc12dcdc221e034f37749516844fd917b8b9efdd Mon Sep 17 00:00:00 2001 From: StanGirard Date: Mon, 29 Jun 2020 23:41:47 +0200 Subject: [PATCH] [DOCKER] Added docker --- Dockerfile | 7 +++++++ README.md | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..624a3e0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +# Dockerfile - this is a comment. Delete me if you want. +FROM python:3.7 +COPY . /app +WORKDIR /app +RUN pip install -r requirements.txt +ENTRYPOINT ["python"] +CMD ["wsgi.py"] \ No newline at end of file diff --git a/README.md b/README.md index a2aba71..4c6df7e 100644 --- a/README.md +++ b/README.md @@ -36,12 +36,24 @@ Then install dependencies pip install -r requirements.txt ``` +or you can use Docker + +```Bash +docker build -t seo-toolkit:latest . +``` + ## Running Flask ```Bash flask run ``` +or with docker + +```Bash +docker run -d -p 5000:5000 seo-toolkit:latest +``` + This will expose these endpoints: - `localhost:5000/api/graph` - `localhost:5000/api/extract/headers`