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`