versa / Dockerfile
ftshijt
use docker for setup
37d87af
raw
history blame
931 Bytes
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"]