> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ambarks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Flask

> Deploy com flask/ gunicorn e bind correto.

# <Icon icon="cloud" color="#0516ee" size={30} /> Flask

Para produção, prefira gunicorn.

## Exemplo de `requirements.txt`

```text theme={null}
flask
gunicorn
```

## Exemplo de `ambarks.json` (gunicorn)

```json theme={null}
{
  "build": {
    "installCommand": "pip install --no-cache-dir -r requirements.txt"
  },
  "run": {
    "command": "gunicorn -b 0.0.0.0:8000 app:app"
  }
}
```

## Configurações no dashboard

* Porta interna: `8000`
