Skip to content

Commit d6186f3

Browse files
committed
docs: update docker instructions in readme
1 parent 14c8327 commit d6186f3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,20 @@ python3 app.py
3636

3737
You can also copy `.env.example` to `.env` file and change the environment value based on your needs before running the app.
3838

39+
There is also Dockerfile available if you want to build docker image locally. If you don't want to build docker image locally, you can use the published version in [ghcr.io/atrifat/hate-speech-detector-api](https://github.com/atrifat/hate-speech-detector-api/pkgs/container/hate-speech-detector-api).
40+
41+
Run it:
42+
43+
```
44+
docker run --init --env-file .env -p 7860:7860 -it ghcr.io/atrifat/hate-speech-detector-api
45+
```
46+
47+
or run it in the background (daemon):
48+
49+
```
50+
docker run --init --env-file .env -p 7860:7860 -it --name hate-speech-detector-api -d ghcr.io/atrifat/hate-speech-detector-api
51+
```
52+
3953
If you want to test the API server, you can use GUI tools like [Postman](https://www.postman.com/) or using curl.
4054

4155
```

0 commit comments

Comments
 (0)