# video2slides — video2slides.famzheng.me
# 跟其它 cube app 不同：依赖 ffmpeg/ffprobe，所以不能 FROM scratch。
# 用 debian-slim 装 ffmpeg，再拷静态 musl binary（静态链接，跑在 debian 上没问题）。
FROM debian:bookworm-slim
RUN apt-get update \
    && apt-get install -y --no-install-recommends ffmpeg ca-certificates \
    && rm -rf /var/lib/apt/lists/*
COPY target/x86_64-unknown-linux-musl/release/video2slides /video2slides
COPY apps/video2slides/frontend /dist
EXPOSE 8080
ENV VIDEO2SLIDES_DIST_DIR=/dist VIDEO2SLIDES_DATA_DIR=/data
ENTRYPOINT ["/video2slides"]
