- Sweden
-
Also avaiable at https://github.com/TheLovinator1/
- Joined on
2025-04-06
Block a user
anewdawn (sha256:f9426c2a935fb703b995690a10ba6fb1a388fc4364b775e3440d5794da50e116)
Installation
docker pull git.lovinator.space/thelovinator/anewdawn@sha256:f9426c2a935fb703b995690a10ba6fb1a388fc4364b775e3440d5794da50e116
sha256:f9426c2a935fb703b995690a10ba6fb1a388fc4364b775e3440d5794da50e116
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
2025-04-16 23:02:50 +02:00
Versions (2)
View all
Container
0
OCI / Docker
linux/arm64
julien@rottenberg.info
92 MiB