File size: 436 Bytes
332002e
76594cf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM node

# 设置大陆时区
ENV TZ Asia/Shanghai

# 设置中文语言
ENV LANG C.UTF-8

# 切换工作目录
WORKDIR /app

# 复制文件到工作目录
COPY . .

# 安装所需工具
RUN apt-get update
RUN apt-get install -y chromium ffmpeg curl
RUN apt-get install -y fonts-wqy-microhei
RUN apt-get clean

# 安装依赖
RUN npm install

# 启动!
CMD node app

# 赋予权限/归递
RUN chmod -R 777 /tmp
RUN chmod -R 777 /app