jesonouyang commited on
Commit
af88236
·
verified ·
1 Parent(s): 77d65eb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -4,7 +4,10 @@ RUN mkdir /app
4
  WORKDIR /app
5
  # 克隆指定仓库代替COPY
6
  RUN git clone https://github.com/qwertyuiopasdfghjklzxcvbnm0987654321/weibo-rss .
7
- RUN npm i -g npm && npm ci --ignore-scripts && npm run build
 
 
 
8
 
9
  FROM node:18-alpine
10
  LABEL maintainer="https://github.com/zgq354/weibo-rss"
 
4
  WORKDIR /app
5
  # 克隆指定仓库代替COPY
6
  RUN git clone https://github.com/qwertyuiopasdfghjklzxcvbnm0987654321/weibo-rss .
7
+
8
+ # 先生成lock文件
9
+ RUN npm i -g npm && npm install --package-lock-only
10
+ RUN npm ci --ignore-scripts && npm run build
11
 
12
  FROM node:18-alpine
13
  LABEL maintainer="https://github.com/zgq354/weibo-rss"