22 lines
494 B
Docker
22 lines
494 B
Docker
FROM debian:bullseye-slim
|
|
|
|
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/
|
|
|
|
|
|
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"] |