forked from langhuihui/monibuca
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfilePro
More file actions
42 lines (34 loc) · 1.34 KB
/
DockerfilePro
File metadata and controls
42 lines (34 loc) · 1.34 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
42
# 多架构运行镜像 - 支持 AMD64 和 ARM64(使用清华大学镜像源)
FROM --platform=$BUILDPLATFORM swr.cn-east-3.myhuaweicloud.com/intetech/ffmpeg:latest AS base
WORKDIR /monibuca
# 配置清华大学镜像源(DEB822 格式)
RUN echo 'Types: deb\n\
URIs: https://mirrors.tuna.tsinghua.edu.cn/ubuntu\n\
Suites: noble noble-updates noble-backports\n\
Components: main restricted universe multiverse\n\
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg\n\
\n\
Types: deb\n\
URIs: https://mirrors.tuna.tsinghua.edu.cn/ubuntu\n\
Suites: noble-security\n\
Components: main restricted universe multiverse\n\
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg' > /etc/apt/sources.list.d/ubuntu.sources
# 安装必要的工具(使用清华源加速)
RUN apt-get update && \
apt-get install -y tcpdump && \
rm -rf /var/lib/apt/lists/*
# 复制二进制文件
ARG TARGETARCH
COPY pro_linux_${TARGETARCH} ./monibuca_linux
# 复制静态资源
COPY example/default/admin.zip ./admin.zip
COPY example/default/test.mp4 ./test.mp4
COPY example/default/test.flv ./test.flv
# 复制配置文件
COPY example/default/config.yaml /etc/monibuca/config.yaml
# 导出端口
EXPOSE 6000 8080 8443 1935 554 5060 9000-20000/udp
EXPOSE 5060/udp 44944/udp
# 设置入口点
ENTRYPOINT ["./monibuca_linux"]
CMD ["-c", "/etc/monibuca/config.yaml"]