Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need pr #128

Closed
mangeen opened this issue Mar 29, 2023 · 2 comments
Closed

need pr #128

mangeen opened this issue Mar 29, 2023 · 2 comments

Comments

@mangeen
Copy link

mangeen commented Mar 29, 2023

pls make fully dockerized

@binary-husky
Copy link
Owner

checking out this dockerfile? would you like to test it ?

# how to build: docker build -t gpt-academic --network=host .
# how to run: docker run --rm -it --net=host gpt-academic
FROM python:3.11
WORKDIR /gpt


ARG useProxyNetwork=''

# # comment out below if you do not need proxy network | 翻墙 - 从此行向下删除
RUN apt-get update
RUN apt-get install -y curl proxychains curl 
RUN $useProxyNetwork curl cip.cc
RUN sed -i '$ d' /etc/proxychains.conf
RUN sed -i '$ d' /etc/proxychains.conf
RUN echo "socks5 127.0.0.1 10880" >> /etc/proxychains.conf
ARG useProxyNetwork=proxychains
# # comment out above if you do not need proxy network | 翻墙 - 从此行向上删除

RUN $useProxyNetwork git clone https://github.com/binary-husky/chatgpt_academic.git
WORKDIR /gpt/chatgpt_academic
RUN $useProxyNetwork pip3 install -r requirements.txt
RUN $useProxyNetwork git pull

# proxy and API Key (key below is invalid)
RUN echo ' \n\
API_KEY = "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" \n\
USE_PROXY = True \n\
proxies = { "http": "socks5h://localhost:10880", "https": "socks5h://localhost:10880", } ' >> config_private.py

CMD ["python3", "main.py"]


@binary-husky
Copy link
Owner

#188

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants