-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathffmpeg.patch
66 lines (59 loc) · 2.15 KB
/
ffmpeg.patch
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
From 7b244b63d2d1d0eaaece03edf3c13337f46963f4 Mon Sep 17 00:00:00 2001
From: GoProSlowYo <[email protected]>
Date: Sat, 20 May 2023 17:07:43 -0700
Subject: [PATCH] Changes for trumpet and compression
---
Dockerfile | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index e7612cc..7cdeca8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,6 @@
# bump: alpine /FROM alpine:([\d.]+)/ docker:alpine|^3
# bump: alpine link "Release notes" https://alpinelinux.org/posts/Alpine-$LATEST-released.html
-FROM alpine:3.18.0 AS builder
+FROM alpine:3.18 AS builder
RUN apk add --no-cache \
coreutils \
@@ -772,6 +772,7 @@ RUN \
--disable-debug \
--disable-shared \
--disable-ffplay \
+ --disable-ffprobe \
--enable-static \
--enable-gpl \
--enable-version3 \
@@ -900,24 +901,27 @@ RUN \
# make sure binaries has no dependencies, is relro, pie and stack nx
COPY checkelf /
RUN \
- /checkelf /usr/local/bin/ffmpeg && \
- /checkelf /usr/local/bin/ffprobe
+ /checkelf /usr/local/bin/ffmpeg
+ #/checkelf /usr/local/bin/ffprobe
+
+RUN apk add upx && \
+ upx -v --lzma --best /usr/local/bin/ffmpeg
FROM scratch AS final1
-COPY --from=builder /versions.json /usr/local/bin/ffmpeg /usr/local/bin/ffprobe /
+COPY --from=builder /versions.json /usr/local/bin/ffmpeg /
COPY --from=builder /usr/local/share/doc/ffmpeg/* /doc/
COPY --from=builder /etc/ssl/cert.pem /etc/ssl/cert.pem
# sanity tests
RUN ["/ffmpeg", "-version"]
-RUN ["/ffprobe", "-version"]
+#RUN ["/ffprobe", "-version"]
RUN ["/ffmpeg", "-hide_banner", "-buildconf"]
# stack size
RUN ["/ffmpeg", "-f", "lavfi", "-i", "testsrc", "-c:v", "libsvtav1", "-t", "100ms", "-f", "null", "-"]
# dns
-RUN ["/ffprobe", "-i", "https://github.com/favicon.ico"]
+#RUN ["/ffprobe", "-i", "https://github.com/favicon.ico"]
# tls/https certs
-RUN ["/ffprobe", "-tls_verify", "1", "-ca_file", "/etc/ssl/cert.pem", "-i", "https://github.com/favicon.ico"]
+#RUN ["/ffprobe", "-tls_verify", "1", "-ca_file", "/etc/ssl/cert.pem", "-i", "https://github.com/favicon.ico"]
# clamp all files into one layer
FROM scratch AS final2
--
2.39.2