Adding more docs, archiving the first version of the script, changing the second version to be the main version, Python 3.12→3.13, updating the Dockerfile to support the main version of the script, updating README.md to reflect the most recent --help

This commit is contained in:
2025-08-23 01:43:03 -04:00
parent 2dcf1fba8a
commit d4573a72cb
5 changed files with 93 additions and 90 deletions

View File

@@ -1,4 +1,4 @@
FROM python:3.12-slim-bookworm
FROM python:3.13-slim-trixie
VOLUME /home
@@ -6,8 +6,18 @@ 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 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"]