Skip to content

Commit 6426323

Browse files
authored
Merge pull request ricklamers#20 from psalias2006/main
docker
2 parents 0124c4c + 8de32a3 commit 6426323

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM python:3.8-slim-buster
2+
3+
WORKDIR /app
4+
5+
COPY requirements.txt requirements.txt
6+
RUN pip3 install -r requirements.txt
7+
8+
COPY . .
9+
10+
CMD ["python3", "./run.py"]

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,9 @@ To run the application, make sure the virtual environment is active and run the
5858
```
5959
python run.py
6060
```
61+
62+
### Docker
63+
The easiest way to run ChatGPT Clone is by using docker
64+
```
65+
docker-compose up
66+
```

docker-compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: '3.5'
2+
3+
services:
4+
chatgpt-clone:
5+
image: chatgpt-clone
6+
container_name: chatgpt-clone
7+
build:
8+
context: .
9+
dockerfile: Dockerfile
10+
ports:
11+
- "1337:1337"

0 commit comments

Comments
 (0)