Spaces:
Sleeping
Sleeping
File size: 931 Bytes
37d87af |
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 40 41 42 43 |
FROM python:3.9-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
build-essential \
libsndfile1 \
ffmpeg \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements file
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -U pip && \
pip install --no-cache-dir -r requirements.txt
# Clone VERSA repository
RUN git clone https://github.com/shinjiwlab/versa.git && \
cd versa && \
pip install -e .
# Set up data directories
RUN mkdir -p /app/data/configs /app/data/uploads /app/data/results
# Copy universal metrics YAML file
COPY universal_metrics.yaml /app/data/configs/
# Copy application code
COPY app.py .
# Create installation complete indicator
RUN touch /app/versa/.installation_complete
# Set environment variables
ENV PYTHONUNBUFFERED=1
# Run the application
CMD ["python", "app.py"]
|