GAF to add dockerfile
This commit is contained in:
parent
72e545a0da
commit
d3aa46e0fc
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@ -0,0 +1,23 @@
|
||||
# docker build -t aidgaf .
|
||||
#for test
|
||||
# docker run --rm -eSERVERPORT=8087 -eAPIKEY=sk-AaKV.........................HZ4v2ipzFm6 -p8087:8087 -it aidgaf
|
||||
# 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
|
||||
RUN
|
||||
CMD aidgaf
|
||||
ENTRYPOINT ["/usr/bin/python","/app/aidgaf-server/__main__.py"]
|
Loading…
x
Reference in New Issue
Block a user