Skip to content

feat: containerize application with Docker and add docker-compose #24

Open
er-jaydeep-gohel wants to merge 1 commit into
DadaNanjesha:mainfrom
er-jaydeep-gohel:main
Open

feat: containerize application with Docker and add docker-compose #24
er-jaydeep-gohel wants to merge 1 commit into
DadaNanjesha:mainfrom
er-jaydeep-gohel:main

Conversation

@er-jaydeep-gohel
Copy link
Copy Markdown

🐳 Add Docker Support for Containerized Deployment

Summary

This PR adds full Docker support to make the AI Text Humanizer App easy to run anywhere without manual environment setup.

Changes

  • Dockerfile — builds a python:3.10-slim image, installs all dependencies, pre-downloads spaCy (en_core_web_sm) and NLTK models at build time, and serves the Streamlit app on port 8501
  • docker-compose.yml — one-command startup with health checks, auto-restart, and a named volume to persist NLTK data across container restarts
  • .dockerignore — excludes .git, __pycache__, venv, IDE files, and other non-essential files to keep the image lean

Notes

  • PyQt6 is excluded from the container install since the desktop GUI has no display in a headless environment; the Streamlit web UI (main.py) is the target interface
  • NLP models are baked into the image at build time so the container starts instantly without runtime downloads

How to Test

docker compose up --build
# Open http://localhost:8501

Motivation

Users currently need to manually set up a virtual environment, install dependencies, and download NLP models. Docker removes all of that friction and makes the app portable across machines and deployment environments.

Happy to adjust anything — thanks for building this! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant