Vera_voice_test / Dockerfile
Yoonc's picture
Update Dockerfile
26e3b5e verified
# ================================
# Vera - AI Coaching Dashboard
# Streamlit + PyAudio + Whisper
# ================================
FROM python:3.13.7
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
portaudio19-dev \
ffmpeg \
libsndfile1 \
&& rm -rf /var/lib/apt/lists/*
# Copy all app files
COPY . /app
# Install Python dependencies
RUN pip install --no-cache-dir \
streamlit \
openai \
python-dotenv \
pyaudio \
transformers \
torch \
plotly \
pandas
# Set environment variables
ENV STREAMLIT_SERVER_PORT=7860
ENV STREAMLIT_SERVER_ENABLECORS=false
ENV STREAMLIT_SERVER_HEADLESS=true
# Create and set writable cache directories
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
ENV HF_HOME=/app/cache
ENV TRANSFORMERS_CACHE=/app/cache
# (Optional but helpful for Hugging Face Spaces)
ENV XDG_CACHE_HOME=/app/cache
# Expose Streamlit’s default port
EXPOSE 7860
# Run the app
CMD ["streamlit", "run", "main.py"]