This is my dockerfile
FROM python:3.12-slim
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1
WORKDIR /app
RUN pip install poetry
COPY . .
RUN poetry install --no-root
CMD ["poetry", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
This is my fly.toml file
# fly.toml app configuration file generated for harmony-ai on 2024-09-29T00:07:53+05:30
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = 'harmony-ai'
primary_region = 'sjc'
[build]
[http_service]
internal_port = 8000
force_https = true
auto_stop_machines = 'stop'
auto_start_machines = true
min_machines_running = 0
processes = ['app']
[[vm]]
memory = '512mb'
cpu_kind = 'shared'
cpus = 1