smgc commited on
Commit
1ce1f51
1 Parent(s): 47afc7f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -7
Dockerfile CHANGED
@@ -1,20 +1,22 @@
1
- # 使用Node.js官方镜像作为基础镜像
2
  FROM node:14
3
 
4
- # 设置工作目录
 
 
5
  WORKDIR /app
6
 
7
- # 复制package.json和package-lock.json
8
  COPY package*.json ./
9
 
10
- # 安装依赖
11
  RUN npm install
12
 
13
- # 复制应用代码
14
  COPY . .
15
 
16
- # 暴露端口
17
  EXPOSE 8080
18
 
19
- # 运行应用
 
 
 
 
 
20
  CMD [ "node", "app.js" ]
 
 
1
  FROM node:14
2
 
3
+ ENV TZ=Asia/Shanghai
4
+ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
5
+
6
  WORKDIR /app
7
 
 
8
  COPY package*.json ./
9
 
 
10
  RUN npm install
11
 
 
12
  COPY . .
13
 
 
14
  EXPOSE 8080
15
 
16
+ ENV PROJECT_ID=your_project_id
17
+ ENV CLIENT_ID=your_client_id
18
+ ENV CLIENT_SECRET=your_client_secret
19
+ ENV REFRESH_TOKEN=your_refresh_token
20
+ ENV API_KEY=your_api_key
21
+
22
  CMD [ "node", "app.js" ]