xwwww commited on
Commit
7a9cfc3
·
verified ·
1 Parent(s): 6d0ad0e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -4,15 +4,11 @@ FROM node:18
4
  WORKDIR /app
5
  RUN chmod -R 777 /tmp
6
  RUN chmod -R 777 /app
7
- # RUN chmod -R 777 /app/config/config
8
- # 安装 git
9
- RUN apt-get update && apt-get install -y git
10
 
11
-
12
- # 从GitHub克隆代码库
13
- RUN git clone https://github.com/KarinJS/karin-puppeteer.git .
14
-
15
- # 切换回root用户以安装npm依赖
16
 
17
 
18
  # 安装项目依赖
 
4
  WORKDIR /app
5
  RUN chmod -R 777 /tmp
6
  RUN chmod -R 777 /app
7
+ COPY . .
 
 
8
 
9
+ # 赋予权限/归递
10
+ RUN chmod -R 777 /tmp
11
+ RUN chmod -R 777 /app
 
 
12
 
13
 
14
  # 安装项目依赖