add k8s config (#117)

This commit is contained in:
igor
2023-03-25 06:24:43 -04:00
committed by GitHub
parent c73f604819
commit 4876dced04
2 changed files with 78 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
include .env
.PHONY: all
build:
docker build -t chatbot-ui .
run:
export $(cat .env | xargs)
docker stop chatbot-ui || true && docker rm chatbot-ui || true
docker run --name chatbot-ui --rm -e OPENAI_API_KEY=${OPENAI_API_KEY} -p 3000:3000 chatbot-ui
logs:
docker logs -f chatbot-ui
push:
docker tag chatbot-ui:latest ${DOCKER_USER}/chatbot-ui:${DOCKER_TAG}
docker push ${DOCKER_USER}/chatbot-ui:${DOCKER_TAG}