aidgaf-server/Dockerfile

23 lines
688 B
Docker
Raw Normal View History

2023-02-05 23:58:19 +00:00
# docker build -t aidgaf .
#for test
2023-02-08 18:31:48 +00:00
# docker run --rm -eAPIKEY=sk-AaKV.........................HZ4v2ipzFm6 -p8087:8087 -it aidgaf
2023-02-05 23:58:19 +00:00
# curl -X PATCH http://127.0.0.1:8087 -d "{\"message\":{\"command\":\"aidgaf\",\"data\":{\"username\":\"AdamOutler\"}}}"
#for deployment
# docker run --rm \
# -eSERVERPORT=8087 \
# -eHOSTNAME=localhost \
# -eHASHKEY=Password123 \
# -eAPIKEY=sk-AaKV.........................HZ4v2ipzFm6 \
# -p8087:8087 \
# --restart=always \
# aidgaf
FROM alpine:latest
RUN apk add python3 py3-pip \
&& pip3 install openai\
&& mkdir /app
COPY src/aidgaf /app
2023-02-08 18:43:15 +00:00
EXPOSE 8087
2023-02-07 00:56:21 +00:00
ENTRYPOINT ["/usr/bin/python","/app/aidgaf-server/__main__.py",">/dev/stdout"]