churnsight-ai / Dockerfile
Hasitha16's picture
Update Dockerfile
8586e58 verified
raw
history blame
630 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
# Avoid permission issues with Streamlit
ENV HOME=/code
ENV STREAMLIT_HOME=/code
# ---- EXPOSE PORTS ----
EXPOSE 7860
EXPOSE 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]