++
This commit is contained in:
@@ -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"]
|
||||||
Executable
+2
@@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/fish
|
||||||
|
fly deploy -y --depot=false
|
||||||
@@ -7,7 +7,7 @@ app = 'buddhist-terms-search'
|
|||||||
primary_region = 'sin'
|
primary_region = 'sin'
|
||||||
|
|
||||||
[http_service]
|
[http_service]
|
||||||
internal_port = 8080
|
internal_port = 8910
|
||||||
force_https = true
|
force_https = true
|
||||||
auto_stop_machines = 'stop'
|
auto_stop_machines = 'stop'
|
||||||
auto_start_machines = true
|
auto_start_machines = true
|
||||||
|
|||||||
Reference in New Issue
Block a user