Skip to content

Commit 0df5d5d

Browse files
committed
build: switch to pre-built python-ffmpeg docker image
The new base image already includes ffmpeg and flask, simplifying our Dockerfile and reducing build time
1 parent 43d39ba commit 0df5d5d

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The format is inspired by [Keep a Changelog](https://keepachangelog.com/en/1.1.0
1515

1616
### Changed
1717

18-
- Base Docker image updated to `python:3.14-slim`.
18+
- Base Docker image updated to `ghcr.io/painteau/python-ffmpeg:latest` (optimized with pre-installed ffmpeg/flask).
1919
- Shortcode extraction improved to support more Instagram URL formats.
2020
- Error handling with Instaloader refined with appropriate HTTP status codes (404, 403, 429, 503, 502).
2121

Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
FROM python:3.14-slim
1+
FROM ghcr.io/painteau/python-ffmpeg:latest
22
ENV PYTHONUNBUFFERED=1
33

44
WORKDIR /app
5-
RUN apt-get update \
6-
&& apt-get install -y --no-install-recommends ffmpeg \
7-
&& pip install instaloader flask gunicorn \
8-
&& rm -rf /var/lib/apt/lists/*
5+
RUN pip install instaloader
96

107
COPY app.py .
118

0 commit comments

Comments
 (0)