1
0

25 lines
456 B
Docker
Raw Normal View History

2024-11-22 16:10:38 -05:00
FROM python:3.12-slim
# Set the working directory
WORKDIR /app
# Copy the sort.py file to the working directory
COPY sort.py .
COPY requirements.txt .
2024-11-23 01:29:24 -05:00
# Install ffmpeg
RUN apt-get update \
&& apt-get install -y ffmpeg \
&& apt-get clean
2024-11-22 16:10:38 -05:00
# Ensure pip
RUN python -m ensurepip
# Upgrade pip
RUN pip install --upgrade pip
# Install requirements
RUN pip install -r requirements.txt
# Set the entry point to sort.py
ENTRYPOINT ["python", "/app/sort.py"]