arxiv_audio_summary/Dockerfile
Regis David Souza Mesquita 1d90930e29 More features
2025-03-02 12:47:03 +00:00

25 lines
671 B
Docker

# Use an official Python runtime as a parent image
FROM python:3.12-slim
# Install system dependencies including ffmpeg
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
espeak-ng \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
COPY ./requirements.txt ./requirements.txt
RUN pip install --no-cache-dir -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu
# Copy the current directory contents into the container at /app
COPY . .
# Expose port 5000 for the Flask server
EXPOSE 5000
# Command to run the Flask server
CMD ["python", "-m", "vibe.main", "--serve"]