chatgpt-cli/Dockerfile
2023-03-14 11:57:05 -05:00

14 lines
475 B
Docker

from alpine:latest as build
run apk update && apk add git python3 py3-pip py3-virtualenv
run adduser -u 1000 -h /opt/app -D chatgpt
user chatgpt
workdir /opt/app
run git clone https://github.com/marcolardera/chatgpt-cli.git
workdir /opt/app/chatgpt-cli
run virtualenv .env
run sh .env/bin/activate
run pip install -r requirements.txt --ignore-installed
copy run.sh /opt/app/
copy prompts /opt/app/prompts
copy config.yaml /opt/app/chatgpt-cli/
entrypoint ["/opt/app/run.sh"]