deeme commited on
Commit
d1c2297
·
verified ·
1 Parent(s): 5b6f63b

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +0 -14
  2. config.yaml +1 -1
Dockerfile CHANGED
@@ -8,9 +8,6 @@ RUN make
8
 
9
  FROM ubuntu:latest
10
 
11
- RUN apt update \
12
- && apt-get install -y curl unzip wget gnupg2 tree
13
-
14
  WORKDIR /app
15
  COPY --from=builder /app/bin/linux/server ./server
16
  ADD config.yaml .
@@ -18,17 +15,6 @@ RUN chmod +x server \
18
  && mkdir log && chmod 777 log \
19
  && mkdir tmp && chmod 777 tmp
20
 
21
- # Install google
22
- RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
23
- && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
24
- && apt-get update \
25
- && apt-get install -y google-chrome-stable
26
- RUN google-chrome-stable --version
27
-
28
- # 下载过盾文件
29
- RUN curl -JLO https://raw.githubusercontent.com/bincooo/chatgpt-adapter/refs/heads/hel/bin.zip
30
- RUN unzip bin.zip && tree .
31
-
32
  CMD ["./server"]
33
 
34
  ENTRYPOINT ["sh", "-c"]
 
8
 
9
  FROM ubuntu:latest
10
 
 
 
 
11
  WORKDIR /app
12
  COPY --from=builder /app/bin/linux/server ./server
13
  ADD config.yaml .
 
15
  && mkdir log && chmod 777 log \
16
  && mkdir tmp && chmod 777 tmp
17
 
 
 
 
 
 
 
 
 
 
 
 
18
  CMD ["./server"]
19
 
20
  ENTRYPOINT ["sh", "-c"]
config.yaml CHANGED
@@ -5,7 +5,7 @@ server:
5
  debug: false
6
 
7
  browser-less:
8
- enabled: true
9
  port: 8081
10
  disabled-gpu: true
11
  headless: new
 
5
  debug: false
6
 
7
  browser-less:
8
+ enabled: false
9
  port: 8081
10
  disabled-gpu: true
11
  headless: new