From 66ca17063104cd60a7283bf5fd171509b8ace257 Mon Sep 17 00:00:00 2001 From: iacore Date: Tue, 9 Jun 2026 13:53:42 +0800 Subject: [PATCH] ++ --- terms-search/Dockerfile | 11 +++++++++++ terms-search/deploy | 2 ++ terms-search/fly.toml | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 terms-search/Dockerfile create mode 100755 terms-search/deploy diff --git a/terms-search/Dockerfile b/terms-search/Dockerfile new file mode 100644 index 0000000..81965fe --- /dev/null +++ b/terms-search/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3.14-slim + +WORKDIR /app + +RUN pip install --no-cache-dir flask duckdb gunicorn + +COPY server.py search.py termlib.duckdb ./ + +EXPOSE 8910 + +CMD ["gunicorn", "-b", "0.0.0.0:8910", "-w", "1", "--timeout", "30", "server:app"] diff --git a/terms-search/deploy b/terms-search/deploy new file mode 100755 index 0000000..cdf866d --- /dev/null +++ b/terms-search/deploy @@ -0,0 +1,2 @@ +#!/usr/bin/fish +fly deploy -y --depot=false diff --git a/terms-search/fly.toml b/terms-search/fly.toml index af3e833..c11f16e 100644 --- a/terms-search/fly.toml +++ b/terms-search/fly.toml @@ -7,7 +7,7 @@ app = 'buddhist-terms-search' primary_region = 'sin' [http_service] - internal_port = 8080 + internal_port = 8910 force_https = true auto_stop_machines = 'stop' auto_start_machines = true