Spaces:
Paused
Paused
Download Makefile from matthoffner/chatbot: direct link, hf CLI and curl.
- Browser
- Download file 420 Bytes
-
https://huggingface.co/spaces/matthoffner/chatbot/resolve/25b13ff7b33109821bd28b689cd464e16d5bbe05/Makefile
- Command line
-
hf download hf://spaces/matthoffner/chatbot@25b13ff7b33109821bd28b689cd464e16d5bbe05/Makefile
-
curl -L -o Makefile https://huggingface.co/spaces/matthoffner/chatbot/resolve/25b13ff7b33109821bd28b689cd464e16d5bbe05/Makefile
420 Bytes
| 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} |