diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bb1cd8c --- /dev/null +++ b/Dockerfile @@ -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"]