-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathContainerfile
More file actions
40 lines (33 loc) · 1.61 KB
/
Copy pathContainerfile
File metadata and controls
40 lines (33 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# --------------------------------------------------------------------------
# THIS FILE IS AUTOGENERATED - DO NOT EDIT MANUALLY
#
# Source: Containerfile.j2
# --------------------------------------------------------------------------
# ffmpeg — FreeBSD daemonless image
# Official ffmpeg CLI (audio/video transcoding, demux/mux/filter).
# pkg-based port: FreeBSD packages ffmpeg + its full shared-lib dependency tree,
# so there is nothing to build from source and no native-module hazards.
# Upstream: https://ffmpeg.org (GPLv3+, LGPL3+)
ARG BASE_TAG=15-pkg
FROM ghcr.io/daemonless/base-core:${BASE_TAG}
ARG FREEBSD_ARCH=amd64
LABEL org.opencontainers.image.title="ffmpeg" \
org.opencontainers.image.description="ffmpeg CLI (audio/video transcoding) on FreeBSD" \
org.opencontainers.image.source="https://github.com/daemonless/ffmpeg" \
org.opencontainers.image.url="https://ffmpeg.org" \
org.opencontainers.image.licenses="GPL-3.0-or-later" \
org.opencontainers.image.vendor="daemonless" \
org.opencontainers.image.authors="daemonless" \
io.daemonless.category="Utilities" \
io.daemonless.arch="${FREEBSD_ARCH}"
RUN pkg update && pkg install -y ffmpeg \
&& ffmpeg -version | head -1 | grep -qE '^ffmpeg version 8\.' \
|| { echo "DRIFT: pkg ffmpeg is no longer major version 8 — re-verify the port"; exit 1; } \
&& pkg clean -ay && rm -rf /var/cache/pkg/*
# /work is the conventional bind-mount point for media in/out; no other
# config, env, ports, or volumes needed.
RUN mkdir -p /work && chown bsd:bsd /work
USER bsd
WORKDIR /work
ENTRYPOINT ["ffmpeg"]
CMD ["-version"]