New files from Fly.io Launch

This commit is contained in:
Fly.io 2026-06-12 05:25:14 +00:00
parent c158252d02
commit ec46aebe66
3 changed files with 43 additions and 0 deletions

5
.dockerignore Normal file
View file

@ -0,0 +1,5 @@
fly.toml
.git/
__pycache__/
.envrc
.venv/

15
Dockerfile Normal file
View file

@ -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"]

23
fly.toml Normal file
View file

@ -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