From ec46aebe667e3fad633eba2db2bd50910cc76056 Mon Sep 17 00:00:00 2001 From: "Fly.io" Date: Fri, 12 Jun 2026 05:25:14 +0000 Subject: [PATCH] New files from Fly.io Launch --- .dockerignore | 5 +++++ Dockerfile | 15 +++++++++++++++ fly.toml | 23 +++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 fly.toml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..4a1c39c --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +fly.toml +.git/ +__pycache__/ +.envrc +.venv/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..112a6f5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM python:3.12.13 AS builder + +ENV PYTHONUNBUFFERED=1 \ + PYTHONDONTWRITEBYTECODE=1 +WORKDIR /app + + +RUN python -m venv .venv +COPY requirements.txt ./ +RUN .venv/bin/pip install -r requirements.txt +FROM python:3.12.13-slim +WORKDIR /app +COPY --from=builder /app/.venv .venv/ +COPY . . +CMD ["/app/.venv/bin/flask", "run", "--host=0.0.0.0", "--port=8080"] diff --git a/fly.toml b/fly.toml new file mode 100644 index 0000000..f6670fd --- /dev/null +++ b/fly.toml @@ -0,0 +1,23 @@ +# fly.toml app configuration file generated for rayyan-h-tafe-nsw-indigo-hospital-wait-time-calculator on 2026-06-12T05:25:11Z +# +# See https://fly.io/docs/reference/configuration/ for information about how to use this file. +# + +app = 'rayyan-h-tafe-nsw-indigo-hospital-wait-time-calculator' +primary_region = 'iad' + +[build] + +[http_service] + internal_port = 8080 + force_https = true + auto_stop_machines = 'stop' + auto_start_machines = true + min_machines_running = 0 + processes = ['app'] + +[[vm]] + memory = '1gb' + cpu_kind = 'shared' + cpus = 1 + memory_mb = 1024