4PEb6b commited on
Commit
6002497
·
verified ·
1 Parent(s): be601b1

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +31 -0
Dockerfile ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM golang:1.21-alpine AS builder
2
+
3
+ WORKDIR /app
4
+ RUN apk add git make unzip && git clone https://github.com/bincooo/chatgpt-adapter.git .
5
+ RUN unzip /app/you-helper.zip
6
+ FROM ubuntu:latest
7
+
8
+ WORKDIR /app
9
+
10
+ COPY --from=builder /app/bin/linux/helper helper
11
+
12
+ RUN apt update \
13
+ && apt-get install -y curl unzip wget gnupg2
14
+
15
+ # Install google
16
+ RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
17
+ && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
18
+ && apt-get update \
19
+ && apt-get install -y google-chrome-stable
20
+
21
+ # Install Edge
22
+ #RUN wget -q -O - https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/microsoft.gpg >/dev/null \
23
+ # && echo "deb https://packages.microsoft.com/repos/edge stable main" >> /etc/apt/sources.list.d/microsoft-edge.list \
24
+ # && apt-get update -qqy \
25
+ # && apt-get -qqy --no-install-recommends install microsoft-edge-stable
26
+
27
+ RUN chmod +x /helper
28
+
29
+ ENV ARG "--port 7860"
30
+ CMD ["./server ${ARG}"]
31
+ ENTRYPOINT ["sh", "-c"]