forked from adams549659584/go-proxy-bingai
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] 🤔 Use Docker Image instead of building
- Loading branch information
1 parent
651ba06
commit 7a5a795
Showing
6 changed files
with
15 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,15 @@ | ||
FROM zklcdc/go-bingai-pass:latest | ||
FROM zklcdc/go-proxy-bingai:latest-with-pass | ||
|
||
ENV GBP_USER ${GBP_USER:-gbp} | ||
ENV GBP_USER_ID ${GBP_USER_ID:-1000} | ||
|
||
WORKDIR /app | ||
|
||
USER root | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends curl | ||
|
||
RUN curl -L https://github.com/Harry-zklcdc/go-proxy-bingai/releases/latest/download/go-proxy-bingai-linux-amd64.tar.gz -o go-proxy-bingai-linux-amd64.tar.gz && \ | ||
RUN wget https://github.com/Harry-zklcdc/go-proxy-bingai/releases/latest/download/go-proxy-bingai-linux-amd64.tar.gz -O go-proxy-bingai-linux-amd64.tar.gz && \ | ||
tar -zxvf go-proxy-bingai-linux-amd64.tar.gz && \ | ||
chmod +x go-proxy-bingai | ||
|
||
RUN apt-get remove -y curl && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
rm go-proxy-bingai-linux-amd64.tar.gz | ||
RUN wget https://github.com/Harry-zklcdc/go-bingai-pass/releases/latest/download/go-bingai-pass-linux-amd64.tar.gz -O go-bingai-pass-linux-amd64.tar.gz && \ | ||
tar -zxvf go-bingai-pass-linux-amd64.tar.gz && \ | ||
chmod +x go-bingai-pass | ||
|
||
COPY supervisor.conf /etc/supervisor/conf.d/supervisor.conf | ||
|
||
USER $GBP_USER | ||
RUN rm go-bingai-pass-linux-amd64.tar.gz go-proxy-bingai-linux-amd64.tar.gz | ||
|
||
ENV PORT=7860 | ||
ENV BYPASS_SERVER=http://localhost:8080 | ||
|
||
EXPOSE 7860 8080 9005 | ||
COPY supervisor.conf /etc/supervisor/conf.d/supervisor.conf | ||
|
||
CMD /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisor.conf | ||
EXPOSE 8080 45678 9005 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "Go Proxy BingAI", | ||
"dockerComposeFile": "docker-compose.yml", | ||
"service": "cloudflared", | ||
"workspaceFolder": "/workspace" | ||
"service": "go-proxy-bingai", | ||
"workspaceFolder": "/app" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters