12321321 / Dockerfile
arymandeshwal
fix: updated docker files
cf3409e
raw
history blame contribute delete
809 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
software-properties-common \
git \
ffmpeg \
espeak \
espeak-data \
libespeak1 \
libespeak-dev \
festival \
alsa-utils \
&& rm -rf /var/lib/apt/lists/*
# Install uv
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
# Add uv to PATH
ENV PATH="/root/.cargo/bin:/root/.local/bin:$PATH"
COPY . .
RUN uv pip install --system --no-cache -r requirements.txt
RUN uv pip install --system --no-cache streamlit
# Use $PORT environment variable that Render sets
ENV PORT=8501
EXPOSE $PORT
# Use uv with python -m for more reliable streamlit execution
ENTRYPOINT ["sh", "-c", "uv run python -m streamlit run app.py --server.port=$PORT --server.address=0.0.0.0"]