churnsight-ai / Dockerfile
Hasitha16's picture
Upload 7 files
7ea2e4f verified
raw
history blame
693 Bytes
# ---- BASE PYTHON IMAGE ----
FROM python:3.10-slim
# ---- ENV & WORKDIR ----
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /code
# ---- SYSTEM DEPENDENCIES ----
RUN apt-get update && apt-get install -y \
libsndfile1 ffmpeg git \
&& rm -rf /var/lib/apt/lists/*
# ---- COPY PROJECT FILES ----
COPY . /code
# ---- INSTALL DEPENDENCIES ----
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
# ---- EXPOSE PORTS ----
EXPOSE 7860
EXPOSE 8000
# ---- LAUNCH BOTH BACKEND & FRONTEND ----
CMD ["bash", "-c", "uvicorn app.main:app --host 0.0.0.0 --port 8000 & streamlit run frontend.py --server.port 7860 --server.address 0.0.0.0"]