zhao1977 commited on
Commit
f84364f
·
verified ·
1 Parent(s): bff0a40

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -1,7 +1,6 @@
1
- # 使用官方 Python 镜像作为基础镜像
2
  FROM python:3.9-slim
3
 
4
- # 安装系统依赖(包括 curl 和 Node.js)
5
  RUN apt-get update && apt-get install -y curl
6
 
7
  # 安装 Node.js 和 npm
@@ -14,11 +13,14 @@ RUN npm install -g @marp-team/marp-cli
14
  # 设置工作目录
15
  WORKDIR /app
16
 
17
- # 复制项目文件到容器中
18
  COPY . .
19
 
20
  # 安装 Python 依赖
21
  RUN pip install --no-cache-dir -r requirements.txt
22
 
23
- # 设置启动命令
 
 
 
24
  CMD ["python", "app.py"]
 
 
1
  FROM python:3.9-slim
2
 
3
+ # 安装系统依赖
4
  RUN apt-get update && apt-get install -y curl
5
 
6
  # 安装 Node.js 和 npm
 
13
  # 设置工作目录
14
  WORKDIR /app
15
 
16
+ # 复制项目文件
17
  COPY . .
18
 
19
  # 安装 Python 依赖
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
22
+ # 检查 Marp 是否安装成功
23
+ RUN marp --version
24
+
25
+ # 启动命令
26
  CMD ["python", "app.py"]