jokyone commited on
Commit
5914b0a
·
verified ·
1 Parent(s): 35aca16

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -12
Dockerfile CHANGED
@@ -1,5 +1,6 @@
1
  #FROM node:18-alpine
2
- FROM yidadaa/chatgpt-next-web
 
3
 
4
  ENV USER ${USER:-node}
5
  ENV USER_ID ${USER_ID:-1000}
@@ -8,23 +9,32 @@ WORKDIR /app
8
 
9
  COPY . /app
10
 
11
- RUN ls -al /
12
- RUN ls -al ./
13
 
14
- RUN apk add curl wget supervisor git py3-flask
 
15
 
16
- #RUN git clone https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git && \
17
- # cd ChatGPT-Next-Web && \
18
- # npm install && \
19
- # npm run build
 
 
 
 
 
 
 
 
20
 
21
  RUN curl -L https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -o cloudflared && \
22
  chmod +x cloudflared
23
 
24
- RUN curl -L https://github.com/SokWith/go-bingai/releases/latest/download/go-proxy-bingai-linux-amd64.tar.gz -o go-proxy-bingai-linux-amd64.tar.gz && \
25
- tar -xvf go-proxy-bingai-linux-amd64.tar.gz && \
26
- chmod +x go-proxy-bingai && \
27
- rm go-proxy-bingai-linux-amd64.tar.gz
28
 
29
  RUN mkdir -p /var/run/supervisor /var/log/supervisor
30
  RUN chown "${USER_ID}:${USER_ID}" /var/run/supervisor /var/log/supervisor
 
1
  #FROM node:18-alpine
2
+ #FROM yidadaa/chatgpt-next-web
3
+ FROM sokwith/go-proxy-bing
4
 
5
  ENV USER ${USER:-node}
6
  ENV USER_ID ${USER_ID:-1000}
 
9
 
10
  COPY . /app
11
 
12
+ #RUN ls -al /
13
+ #RUN ls -al ./
14
 
15
+ # 更新软件源
16
+ RUN apt-get update
17
 
18
+ # 安装Node.js
19
+ RUN apt-get install -y nodejs
20
+
21
+ # 安装npm
22
+ RUN apt-get install -y npm
23
+
24
+ RUN apk-get install curl wget supervisor git python3-flask
25
+
26
+ RUN git clone https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git && \
27
+ cd ChatGPT-Next-Web && \
28
+ npm install && \
29
+ npm run build
30
 
31
  RUN curl -L https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -o cloudflared && \
32
  chmod +x cloudflared
33
 
34
+ #RUN curl -L https://github.com/SokWith/go-bingai/releases/latest/download/go-proxy-bingai-linux-amd64.tar.gz -o go-proxy-bingai-linux-amd64.tar.gz && \
35
+ # tar -xvf go-proxy-bingai-linux-amd64.tar.gz && \
36
+ # chmod +x go-proxy-bingai && \
37
+ # rm go-proxy-bingai-linux-amd64.tar.gz
38
 
39
  RUN mkdir -p /var/run/supervisor /var/log/supervisor
40
  RUN chown "${USER_ID}:${USER_ID}" /var/run/supervisor /var/log/supervisor