32 lines
No EOL
796 B
Docker
32 lines
No EOL
796 B
Docker
# Use an official Python runtime as a parent image
|
|
FROM python:3.12-slim
|
|
|
|
# Install system dependencies
|
|
RUN apt-get update && apt-get install -y \
|
|
ffmpeg \
|
|
libsndfile1 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Create a volume for the Whisper model
|
|
VOLUME /root/.cache/huggingface
|
|
|
|
# Make port 8501 available to the world outside this container
|
|
EXPOSE 8501
|
|
|
|
# Set the working directory in the container
|
|
WORKDIR /app
|
|
|
|
# Copy requirements.txt
|
|
COPY requirements.txt /app
|
|
|
|
# Install any needed packages specified in requirements.txt
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Define environment variable
|
|
ENV NAME=ReelCaptionMaker
|
|
|
|
# Copy the current directory contents into the container at /app
|
|
COPY . /app
|
|
|
|
# Run app.py when the container launches
|
|
CMD ["streamlit", "run", "app.py"] |