Skip to content

Commit

Permalink
add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-BH committed Feb 13, 2023
1 parent c13753f commit 163479c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM ubuntu:18.04
RUN apt-get update \
&& apt-get install -y python python-pip \
swi-prolog \
&& apt-get clean

WORKDIR /usr/src/app

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

EXPOSE 8080

CMD [ "python", "./Saiko_Denshin.py" ]
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

Saiko_Denshin is an Akinator game where a machine tries to determine which person (a boxer in this case) the player is thinking of by asking a series of questions.

## Running with docker

```shell
docker run --rm -it -p 8080:8080 ahbenmed/saikodenshin
```

## Running manually

### Prerequisites

* Install [python-2.7.13.msi](https://www.python.org/ftp/python/2.7.14/python-2.7.14.amd64.msi)
Expand All @@ -16,7 +24,7 @@ Saiko_Denshin is an Akinator game where a machine tries to determine which perso

pip install -r requirements.txt
### Running
### Runing

```
cd Saiko_Denshin/
Expand Down

0 comments on commit 163479c

Please sign in to comment.