-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathDockerfile.base999999
More file actions
42 lines (33 loc) · 1.87 KB
/
Dockerfile.base999999
File metadata and controls
42 lines (33 loc) · 1.87 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
41
ARG ARCH
#------------------------------------------------------------------------------------
#--------------------------build-----------------------------------------------------
#------------------------------------------------------------------------------------
# http://releases.ubuntu.com/focal/
FROM ${ARCH}ossrs/srs:ubuntu20-base50 as build50
FROM ${ARCH}ossrs/srs:ubuntu20-base51 as build51
FROM ${ARCH}ossrs/srs:ubuntu20-base52 as build52
#------------------------------------------------------------------------------------
#--------------------------dist------------------------------------------------------
#------------------------------------------------------------------------------------
# http://releases.ubuntu.com/focal/
FROM ${ARCH}ubuntu:focal as dist
ARG BUILDPLATFORM
ARG TARGETPLATFORM
ARG TARGETARCH
ARG JOBS=2
RUN echo "BUILDPLATFORM: $BUILDPLATFORM, TARGETPLATFORM: $TARGETPLATFORM, TARGETARCH: $TARGETARCH JOBS: $JOBS"
WORKDIR /tmp/srs
# See https://fonts.google.com/specimen/Roboto
# See https://fonts.google.com/noto/specimen/Noto+Sans+SC
ADD Roboto-Regular.ttf NotoSansSC-Regular.ttf /usr/local/share/fonts/
# Copy all FFmpeg versions and cmake and other tools in /usr/local.
COPY --from=build51 /usr/local /usr/local
COPY --from=build50 /usr/local/bin/ffmpeg5 /usr/local/bin/ffprobe5 /usr/local/bin/
COPY --from=build52 /usr/local/bin/ffmpeg7 /usr/local/bin/ffprobe7 /usr/local/bin/
# Note that for armv7, the ffmpeg5-hevc-over-rtmp is actually ffmpeg5.
RUN rm -f /usr/local/bin/ffmpeg && ln -sf /usr/local/bin/ffmpeg5-hevc-over-rtmp /usr/local/bin/ffmpeg && \
rm -f /usr/local/bin/ffprobe && ln -sf /usr/local/bin/ffprobe5-hevc-over-rtmp /usr/local/bin/ffprobe && \
echo "The size of binary:" && du -sh /usr/local/* && \
echo "The usage of disk:" && df -h \
# Note that the PATH has /usr/local/bin by default in ubuntu:focal.
#ENV PATH=$PATH:/usr/local/bin