I am using these packages
langchain-core
langchain-community
langchain
pypdf
gradio
langchain_huggingface
langchain-chroma
langchain_groq
python-dotenv
to develop one python app i build dockers image from these dependencies and its size was 10GB which is huge i have just one code file no other file except why these packages are increasing size upto 10 GB help me if i am missing something these are my code imports for which i have installed these packages
import gradio as gr
from langchain.text_splitter import RecursiveCharacterTextSplitter
from langchain_chroma import Chroma
import logging
from langchain.chains import ConversationChain, RetrievalQA
from langchain_core.output_parsers import StrOutputParser
from langchain_community.document_loaders import (
PyPDFLoader,
)
from langchain_core.prompts.prompt import PromptTemplate
from langchain.memory import ConversationBufferMemory
from langchain_groq import ChatGroq
from langchain_huggingface import HuggingFaceEmbeddings
import os
from dotenv import load_dotenv
I want to reduce the size of Docker image
langchain_huggingface
istorch
, which takes ~2GB on its own.