From 408c42ef18bbcddf08ff56c5384c2c56b4286c68 Mon Sep 17 00:00:00 2001 From: Cristover Wurangian Date: Fri, 13 Sep 2024 00:00:00 +0700 Subject: [PATCH] Add Docker support and remove advetools from requirements.txt * Removed advetools from requirements.txt due to compatibility issues (see https://github.com/AJaySi/AI-Writer/issues/124) --- Dockerfile | 13 +++++++++++++ docker-compose.yml | 11 +++++++++++ requirements copy.txt | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml create mode 100644 requirements copy.txt diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..1bcbd6f7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3.12 + +WORKDIR /app + +COPY requirements.txt . + +RUN pip install -r requirements.txt + +COPY . . + +EXPOSE 8501 + +CMD ["streamlit", "run", "alwrity.py"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..c2baee11 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: '3.8' + +services: + app: + image: python:3.12 + working_dir: /app + volumes: + - .:/app + command: bash -c "pip install -r requirements.txt && streamlit run alwrity.py" + ports: + - "8501:8501" diff --git a/requirements copy.txt b/requirements copy.txt new file mode 100644 index 00000000..67533ac9 --- /dev/null +++ b/requirements copy.txt @@ -0,0 +1,40 @@ +requests +typer[all] +rich +python-dotenv +loguru +openai +crewai[tools] +crewai_tools +python-docx +PyPDF2 +google.generativeai +anthropic +tenacity +tavily-python +tabulate +metaphor_python +exa_py +GoogleNews +langchain-google-genai +clint +scikit-learn +matplotlib +plotly +requests_html +pytrends +pytube +wordcloud +prompt_toolkit +ipython +html2image +lxml_html_clean +streamlit +yfinance +pandas_ta +firecrawl-py +gTTS +streamlit-mic-recorder +tinify +cloudscraper +xmlschema