Skip to content

Commit 84e87eb

Browse files
committed
Docker support
1 parent 9c50b3c commit 84e87eb

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

Docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
versions: "3.11"
21
services:
32
streamlit:
43
container_name: sentiment-analysis
@@ -10,4 +9,3 @@ services:
109
environment:
1110
- STREAMLIT_SERVER_PORT=8501
1211
- STREAMLIT_SERVER_ADDRESS=0.0.0.0
13-

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM python:3.11-slim
2+
3+
WORKDIR /app
4+
5+
COPY requirements.txt .
6+
RUN pip install --no-cache-dir -r requirements.txt
7+
8+
COPY . .
9+
10+
EXPOSE 8501
11+
12+
CMD ["streamlit", "run", "dashboard.py", "--server.port=8501", "--server.address=0.0.0.0"]

0 commit comments

Comments
 (0)