Skip to content

CMU-17313Q/f23-docker-recitation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

s23-docker-recitation

1. Running the app locally

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.

2. Build the docker image

Make sure your have Dockerfile

docker build -t myimage .

3. Local or remote containerization (and deployment)

Local

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

Remote

Instructions from here.

  1. The fly launch command detects Dockerfile and builds it.
fly launch
  1. Deploy the application with fly.
fly deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 89.9%
  • Dockerfile 10.1%