forked from RekhuGopal/msdocs-python-flask-container-web-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHelpfile.txt
More file actions
5 lines (4 loc) · 641 Bytes
/
Helpfile.txt
File metadata and controls
5 lines (4 loc) · 641 Bytes
1
2
3
4
5
docker build --rm --pull --file "Dockerfile" --label "com.microsoft.create-by=docker-cli" --tag "msdocspythoncontainerwebapp:latest" .
$PORT=5000
$CONNECTION_STRING="mongodb://flaskcontainerappdb:RVP17EoTfpWxcEC6bv5wgVxkBuKzphSJJmIERHR76MIaGA3K2jajYBzZ1iR7KaABNwIJ84ly94mCACDbzg6LHg==@flaskcontainerappdb.mongo.cosmos.azure.com:10255/?ssl=true&replicaSet=globaldb&retrywrites=false&maxIdleTimeMS=120000&appName=@flaskcontainerappdb@"
docker run --rm -it --publish ${PORT}:${PORT}/tcp --env CONNECTION_STRING=${CONNECTION_STRING} --env DB_NAME=restaurants_reviews --env COLLECTION_NAME=restaurants_reviews msdocspythoncontainerwebapp:latest