Joakim Hellsén TheLovinator

anewdawn (sha256:e5647667be05f7b145bdcb92587b4fc43d67573476c4461a1022943aabc46d43)

Published 2025-04-16 23:02:50 +02:00 by TheLovinator in TheLovinator/ANewDawn

Installation

docker pull git.lovinator.space/thelovinator/anewdawn@sha256:e5647667be05f7b145bdcb92587b4fc43d67573476c4461a1022943aabc46d43
sha256:e5647667be05f7b145bdcb92587b4fc43d67573476c4461a1022943aabc46d43

About this package

Discord will only create embeds for videos and images if they are smaller than 10MiB. We can "abuse" this by using the twitter:image HTML meta tag.

Image Layers

ADD alpine-minirootfs-3.20.6-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
COPY /usr/share/fonts /usr/share/fonts # buildkit
COPY /usr/share/fontconfig /usr/share/fontconfig # buildkit
COPY /usr/local /usr/local # buildkit
COPY /tmp/fakeroot/ / # buildkit
LABEL org.opencontainers.image.authors=julien@rottenberg.info org.opencontainers.image.source=https://github.com/jrottenberg/ffmpeg
ENV LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64
CMD ["--help"]
ENTRYPOINT ["/bin/ffmpeg"]
COPY /uv /uvx /bin/ # buildkit
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
ENV UV_COMPILE_BYTECODE=1
ENV UV_LINK_MODE=copy
ENV UV_NO_CACHE=1
RUN /bin/sh -c apk add --no-cache shadow python3 && useradd --create-home botuser && mkdir /Uploads && chown botuser:botuser /Uploads # buildkit
USER botuser
WORKDIR /app
ADD --chown=botuser:botuser discord_embed /app/discord_embed # buildkit
RUN /bin/sh -c uv sync --no-install-project --no-dev # buildkit
VOLUME [/Uploads]
EXPOSE map[5000/tcp:{}]
CMD ["uv" "run" "uvicorn" "discord_embed.main:app" "--host" "0.0.0.0" "--port" "5000" "--use-colors" "--proxy-headers" "--forwarded-allow-ips" "*" "--log-level" "debug"]

Labels

Key Value
org.opencontainers.image.authors julien@rottenberg.info
org.opencontainers.image.created 2025-04-16T21:01:49.163Z
org.opencontainers.image.description Discord will only create embeds for videos and images if they are smaller than 10MiB. We can "abuse" this by using the twitter:image HTML meta tag.
org.opencontainers.image.licenses
org.opencontainers.image.revision ee41b64af09ba87337e4dce0fdcf69e3bbd847cb
org.opencontainers.image.source https://git.lovinator.space/TheLovinator/discord-embed
org.opencontainers.image.title discord-embed
org.opencontainers.image.url https://git.lovinator.space/TheLovinator/discord-embed
org.opencontainers.image.version latest
Details
Container
2025-04-16 23:02:50 +02:00
0
OCI / Docker
linux/amd64
julien@rottenberg.info
92 MiB
Versions (2) View all
latest 2025-07-04
master 2025-04-16