fixed docker ffmpeg

This commit is contained in:
cool.gitter.choco
2025-03-18 12:56:45 -06:00
parent cb2b327869
commit 6c8e6d155d
3 changed files with 49 additions and 26 deletions

View File

@@ -8,7 +8,9 @@ WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
gosu \
git \
redis-server \
ffmpeg \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
@@ -21,8 +23,9 @@ RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Create necessary directories
RUN mkdir -p downloads config creds
# Create necessary directories with proper permissions
RUN mkdir -p downloads config creds logs && \
chmod 777 downloads config creds logs
# Make entrypoint script executable
RUN chmod +x entrypoint.sh
@@ -30,5 +33,4 @@ RUN chmod +x entrypoint.sh
# Set entrypoint to our script
ENTRYPOINT ["/app/entrypoint.sh"]
# Default command (empty as entrypoint will handle the default behavior)
CMD []
# No CMD needed as entrypoint.sh handles application startup