Skip to content

Commit

Permalink
[DOCKER] Added docker
Browse files Browse the repository at this point in the history
  • Loading branch information
StanGirard committed Jun 29, 2020
1 parent a2bbb1d commit bc12dcd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit bc12dcd

Please sign in to comment.