Create Dockerfile
Browse files- Dockerfile +34 -0
Dockerfile
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM zklcdc/go-bingai-pass:latest
|
| 2 |
+
|
| 3 |
+
ENV GBP_USER ${GBP_USER:-gbp}
|
| 4 |
+
ENV GBP_USER_ID ${GBP_USER_ID:-1000}
|
| 5 |
+
|
| 6 |
+
WORKDIR /app
|
| 7 |
+
|
| 8 |
+
USER root
|
| 9 |
+
|
| 10 |
+
RUN apt-get update && apt-get install -y --no-install-recommends curl
|
| 11 |
+
|
| 12 |
+
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 && \
|
| 13 |
+
tar -zxvf go-proxy-bingai-linux-amd64.tar.gz && \
|
| 14 |
+
chmod +x go-proxy-bingai
|
| 15 |
+
|
| 16 |
+
RUN curl -L https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -o cloudflared && \
|
| 17 |
+
chmod +x cloudflared
|
| 18 |
+
|
| 19 |
+
RUN apt-get remove -y curl && \
|
| 20 |
+
apt-get clean && \
|
| 21 |
+
rm -rf /var/lib/apt/lists/* && \
|
| 22 |
+
rm go-proxy-bingai-linux-amd64.tar.gz
|
| 23 |
+
|
| 24 |
+
COPY docker/supervisor.conf /etc/supervisor/conf.d/supervisor.conf
|
| 25 |
+
|
| 26 |
+
USER $GBP_USER
|
| 27 |
+
|
| 28 |
+
ENV PORT=8080
|
| 29 |
+
ENV Go_Proxy_BingAI_BLANK_API_KEY=true
|
| 30 |
+
ENV BYPASS_SERVER=http://localhost:45678
|
| 31 |
+
|
| 32 |
+
EXPOSE 8080
|
| 33 |
+
|
| 34 |
+
CMD /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisor.conf
|