feat: Add Dockerfile, docker-compose, and update .gitignore for Docker setup

This commit is contained in:
Bobby (aider) 2025-02-20 21:23:38 -08:00
parent 3b151ae55a
commit 918f6525c5
4 changed files with 41 additions and 0 deletions

13
.dockerignore Normal file
View File

@ -0,0 +1,13 @@
__pycache__
*.pyc
*.pyo
*.pyd
.Python
env/
venv/
.env
*.log
.git
.gitignore
data/
reports/

4
.gitignore vendored
View File

@ -18,3 +18,7 @@ reports/
.DS_Store
Thumbs.db
.aider*
# Docker
.docker/
docker-compose.override.yml

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8501
CMD ["streamlit", "run", "src/streamlit_app.py"]

12
docker-compose.yml Normal file
View File

@ -0,0 +1,12 @@
version: '3.8'
services:
web:
build: .
ports:
- "8501:8501"
volumes:
- .:/app
environment:
- STREAMLIT_SERVER_PORT=8501
- STREAMLIT_SERVER_ADDRESS=0.0.0.0