Spaces:
Sleeping
Sleeping
File size: 992 Bytes
048be85 37f0545 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | # Use Python 3.11 slim as base image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy and install backend requirements
COPY backend/requirements.txt /app/backend/requirements.txt
RUN pip install --no-cache-dir -r /app/backend/requirements.txt
# Copy and install frontend requirements
COPY frontend/requirements.txt /app/frontend/requirements.txt
RUN pip install --no-cache-dir -r /app/frontend/requirements.txt
# Copy backend files
COPY backend/ /app/backend/
# Copy frontend files
COPY frontend/ /app/frontend/
# Create static directory for audio files
RUN mkdir -p /app/backend/static
# Copy startup script
COPY start_huggingface.sh /app/start_huggingface.sh
RUN chmod +x /app/start_huggingface.sh
# Expose port 7860 (Hugging Face default)
EXPOSE 7860
# Use startup script as entry point
CMD ["/app/start_huggingface.sh"]
|