you-helper / Dockerfile
4PEb6b's picture
Update Dockerfile
9c5a36b verified
raw
history blame
1.17 kB
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 \
&& mkdir log tmp \
&& chmod 777 log \
&& chmod 777 tmp
ENV ARG "--port 7860"
CMD ["./helper ${ARG}"]
ENTRYPOINT ["sh", "-c"]