mirror of
https://github.com/reiyua/HospitalWaitTimeCalc.git
synced 2026-11-17 06:12:05 +11:00
Merge pull request #1 from reiyua/flyio-new-files
Fly.io Launch config files
This commit is contained in:
commit
1605fc0811
3 changed files with 43 additions and 0 deletions
5
.dockerignore
Normal file
5
.dockerignore
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
fly.toml
|
||||
.git/
|
||||
__pycache__/
|
||||
.envrc
|
||||
.venv/
|
||||
15
Dockerfile
Normal file
15
Dockerfile
Normal 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
23
fly.toml
Normal 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
|
||||
Loading…
Add table
Reference in a new issue