video-to-gif/Dockerfile

23 lines
512 B
Docker

FROM python:3.13-slim-trixie
VOLUME /home
COPY video_to_gif.py /home/video_to_gif.py
WORKDIR /home
# https://stackoverflow.com/a/52445962
RUN apt update -y && \
apt upgrade -y && \
apt install ffmpeg -y && \
apt install curl -y && \
apt install build-essential -y
# https://stackoverflow.com/a/49676568
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
# https://crates.io/crates/gifski
RUN cargo install gifski
ENTRYPOINT ["python", "video_to_gif.py"]