churnsight-ai / Dockerfile
Hasitha16's picture
Update Dockerfile
9234853 verified
raw
history blame
722 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
ENV TRANSFORMERS_CACHE=/tmp/hf-cache
ENV HF_HOME=/tmp/hf-home
ENV NLTK_DATA=/tmp/nltk_data
# ---- EXPOSE PORTS ----
EXPOSE 7860
EXPOSE 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]