KilersBotz commited on
Commit
3596483
·
verified ·
1 Parent(s): 6ca218c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 使用archlinux基础镜像
2
+ FROM archlinux:latest
3
+
4
+ # 设置大陆时区
5
+ ENV TZ Asia/Shanghai
6
+
7
+ # 设置工作目录
8
+ WORKDIR /puppeteer
9
+
10
+ # 将本地的所有文件复制到工作目录
11
+ COPY . .
12
+
13
+ # 安装依赖
14
+ RUN chmod -R 777 /puppeteer
15
+ RUN pacman -Syu --noconfirm
16
+ RUN pacman -S --noconfirm nodejs npm
17
+ RUN pacman -S --noconfirm chromium
18
+ RUN pacman -S --noconfirm wqy-microhei
19
+ RUN npm install -g pnpm
20
+ RUN pnpm install -P
21
+
22
+ # 暴露端口
23
+ EXPOSE 7860
24
+
25
+ # 启动!
26
+ CMD ["node", "."]