Skip to content

Commit c97100d

Browse files
Updated dockerfile with GUI (#388)
1 parent d3dc793 commit c97100d

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,13 @@ docker build -t streaming-community-api .
796796

797797
Run the container with Cloudflare DNS for better connectivity:
798798
```
799-
docker run -it --dns 1.1.1.1 -p 8000:8000 streaming-community-api
799+
docker run -d --name streaming-community --dns 1.1.1.1 -p 8000:8000 streaming-community-api
800+
```
801+
802+
Tip CLI:
803+
- To run the CLI inside the container, attach to the container and execute:
804+
```
805+
docker exec -it streaming-community python test_run.py
800806
```
801807
</details>
802808

dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1010

1111
WORKDIR /app
1212

13-
COPY requirements.txt .
14-
13+
COPY requirements.txt ./
1514
RUN pip install --no-cache-dir -r requirements.txt
1615

16+
COPY GUI/requirements.txt ./GUI/requirements.txt
17+
RUN pip install --no-cache-dir -r GUI/requirements.txt
18+
1719
COPY . .
1820

19-
CMD ["python", "test_run.py"]
21+
EXPOSE 8000
22+
23+
CMD ["python", "GUI/manage.py", "runserver", "0.0.0.0:8000"]

0 commit comments

Comments
 (0)