arxiv_audio_summary/Dockerfile

26 lines
671 B
Text
Raw Normal View History

2025-03-02 03:28:36 +00:00
# Use an official Python runtime as a parent image
2025-03-02 12:47:03 +00:00
FROM python:3.12-slim
2025-03-02 03:28:36 +00:00
# Install system dependencies including ffmpeg
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
2025-03-02 12:47:03 +00:00
espeak-ng \
2025-03-02 03:28:36 +00:00
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
2025-03-02 12:47:03 +00:00
COPY ./requirements.txt ./requirements.txt
RUN pip install --no-cache-dir -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu
2025-03-02 03:28:36 +00:00
# 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
2025-03-02 12:47:03 +00:00
CMD ["python", "-m", "vibe.main", "--serve"]