25 lines
662 B
Docker
25 lines
662 B
Docker
FROM debian:bullseye-slim
|
||
|
||
# 【极简设置时区:不装 tzdata!】
|
||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
||
echo "Asia/Shanghai" > /etc/timezone
|
||
|
||
# 复制 deb 包到容器中
|
||
COPY mp4-merge_0.1.11-1_arm64.deb /tmp/
|
||
|
||
# 安装 deb 包(使用 dpkg 安装,如果依赖有问题会自动修复)
|
||
RUN dpkg -i /tmp/mp4-merge_0.1.11-1_arm64.deb || (apt-get update && apt-get install -f -y)
|
||
|
||
# 复制模型文件(这是必须的)
|
||
COPY models/ /usr/local/models/
|
||
|
||
# 复制启动脚本
|
||
COPY start.sh /usr/local/start.sh
|
||
RUN chmod +x /usr/local/start.sh
|
||
|
||
WORKDIR /usr/local/models
|
||
RUN chmod +x yolov5
|
||
|
||
CMD ["/usr/local/start.sh"]
|
||
|