doc2video / Dockerfile
zhao1977's picture
Upload Dockerfile
f84364f verified
raw
history blame
524 Bytes
FROM python:3.9-slim
# 安装系统依赖
RUN apt-get update && apt-get install -y curl
# 安装 Node.js 和 npm
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install -y nodejs
# 安装 Marp CLI
RUN npm install -g @marp-team/marp-cli
# 设置工作目录
WORKDIR /app
# 复制项目文件
COPY . .
# 安装 Python 依赖
RUN pip install --no-cache-dir -r requirements.txt
# 检查 Marp 是否安装成功
RUN marp --version
# 启动命令
CMD ["python", "app.py"]