CFOnHeart / GptServer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python flask app

Local run in Docker

  1. docker build -t gptserver .
  2. docker run -p 5000:5000 gptserver

Run in Cloud

1. Push image into Azure Container Registry

Run commands locally

docker build -t gptserver .
docker tag gptserver gptbotacr.azurecr.io/gptserver
az login # login with junnor.gan@gmail.com
az acr login --name gptbotacr
docker push gptbotacr.azurecr.io/gptserver

Run it on Azure App Service

Here's the link of our app service resource

When you push the image into the acr, you should wait 2-3 minutes syncing this new image in our app service. You don't need to deploy app service manually.

How to access your api

for example: http://gpt-backend.azurewebsites.net/testget

About


Languages

Language:Python 87.2%Language:Dockerfile 12.8%