heroo commited on
Commit
37e1d9d
·
verified ·
1 Parent(s): fffabe0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -1,12 +1,12 @@
1
  FROM node:18.19.0-alpine as react-builder
2
 
3
  WORKDIR /app
 
4
  RUN wget -qO- -t1 -T2 "https://api.github.com/repos/ai365vip/chat-api/releases" | \
5
  grep "tag_name" | \
6
  head -n 1 | \
7
  awk -F ":" '{print $2}' | \
8
  sed 's/\"//g;s/,//g;s/ //g' > VERSION
9
-
10
  RUN git clone https://github.com/ai365vip/chat-api.git chat-api
11
  WORKDIR /app/chat-api
12
  # No need to copy package-lock.json, it is already in the cloned source code
 
1
  FROM node:18.19.0-alpine as react-builder
2
 
3
  WORKDIR /app
4
+ RUN apk add --no-cache git
5
  RUN wget -qO- -t1 -T2 "https://api.github.com/repos/ai365vip/chat-api/releases" | \
6
  grep "tag_name" | \
7
  head -n 1 | \
8
  awk -F ":" '{print $2}' | \
9
  sed 's/\"//g;s/,//g;s/ //g' > VERSION
 
10
  RUN git clone https://github.com/ai365vip/chat-api.git chat-api
11
  WORKDIR /app/chat-api
12
  # No need to copy package-lock.json, it is already in the cloned source code