Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 741 Bytes

File metadata and controls

21 lines (14 loc) · 741 Bytes

Flask server packaged for ECS or other container service

This example app builds a very simple flask application packaged as a container image. Notice the /app/run.sh shell script that starts gunicorn and points it at the code contained in /app/application.py.

Application Flow

Follow the instructions below to build and run the application.

  1. Build your container locally:
    docker build -t flask-app-container:latest .
  1. Run your container locally:
    docker run -it -p 8000:8000 flask-app-container:latest
  1. View the Flask server!

Move on to the next sample application...