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