In the root directory, run:
pip install -r requirements.txt
to install requirements.
uvicorn app.main:app --host 0.0.0.0 --port 8080
to locally run the app.
Make sure your have Dockerfile
docker build -t myimage .
You can containerize locally two ways. Using docker run
or using the docker-compose.yml
file.
docker run -d --name mycontainer -p 80:80 myimage
OR
docker-compose up -d
Instructions from here.
- The
fly launch
command detectsDockerfile
and builds it.
fly launch
- Deploy the application with fly.
fly deploy