CoolFace
Apppublic

hamiq/harmiq

sourceHugging Facemitupdated 6mo agoView on Hugging Face
1likes
Dockerfile58 linesDownload Raw Back to root
1FROM python:3.11-slim2 3# Usuario no-root requerido por HuggingFace4RUN useradd -m -u 1000 user5ENV PATH="/home/user/.local/bin:$PATH"6 7WORKDIR /app8 9# Dependencias del sistema10RUN apt-get update && apt-get install -y \11    libsndfile1 ffmpeg \12    && rm -rf /var/lib/apt/lists/*13 14# Instalar dependencias Python15COPY --chown=user requirements.txt .16RUN pip install --no-cache-dir --upgrade -r requirements.txt17 18# App principal19COPY --chown=user app.py .20COPY --chown=user api_client.py .21 22# Motor de análisis vocal23COPY --chown=user voice_analyzer.py .24COPY --chown=user voice_analyzer_v2.py .25 26# Generador de tarjetas27COPY --chown=user card_generator.py .28 29# Módulo Toons30COPY --chown=user harmiq_toons_module.py .31COPY --chown=user avatar_svgs.py .32 33# Bases de datos JSON34COPY --chown=user perfiles_personajes.json .35COPY --chown=user cartoon_archetypes.json .36COPY --chown=user vocal_range_database.json .37 38# Base de datos de canciones (95k canciones)39COPY --chown=user Canciones_Maestras.xlsx .40COPY --chown=user singer_profiles_extra.json .41COPY --chown=user singer_profiles_female_intl.json .42COPY --chown=user singer_profiles_crooners.json .43 44# Config Streamlit45RUN mkdir -p /app/.streamlit46COPY --chown=user .streamlit/config.toml .streamlit/config.toml47 48USER user49 50EXPOSE 850151 52CMD ["streamlit", "run", "app.py", \53     "--server.port=8501", \54     "--server.address=0.0.0.0", \55     "--server.enableXsrfProtection=false", \56     "--server.maxUploadSize=200", \57     "--browser.gatherUsageStats=false"]58