Demo of AWS Docker container deployment (Lightsail)
https://dash.plotly.com/minimal-app
To install, and run, using pipenv
% pipenv run python app/main.py
To install manually, see https://dash.plotly.com/installation
% docker build -t dash-example:latest .
% docker run -p 8080:80 dash-example
You probably shouldn't do this manually, but if you did the command would look something like this -
% % aws lightsail push-container-image --region eu-west-2 --service-name container-service-1 --image dash-example:latest --label dash-example
https://docs.github.com/en/actions/using-workflows/about-workflows
For a deployable application there must be a Dockerfile that can be built, so it makes sense to test for this with every push to the repository.
The Lighsail action builds the docker image and pushes it to a container service. This action requires OIDC authentication and a suitable IAM role.
For more information on Lightsail see https://aws.amazon.com/lightsail/features/