Simple Terraform demo for GCP to deploy a Flask app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/bash
|
|
|
|
sudo apt-get update
|
|
sudo apt-get install -yq docker.io
|
|
sudo docker build --network=host -t flaskapp .
|
|
sudo docker run -d -p 5000:5000 flaskapp:latest
|
|
#python3 -m pip install flask
|
|
#python3 app.py >> log.txt 2>&1 &
|
|
#nohup python3 -u ./app.py > output.log & |