Compare commits
1 Commits
2217bd5855
...
production
| Author | SHA1 | Date | |
|---|---|---|---|
| 07e3af444c |
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.13.1 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.13.1-slim
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/.venv .venv/
|
||||
COPY . .
|
||||
CMD ["/app/.venv/bin/flask", "run", "--host=0.0.0.0", "--port=8080"]
|
||||
20
fly.toml
Normal file
20
fly.toml
Normal file
@@ -0,0 +1,20 @@
|
||||
# fly.toml app configuration file generated for tornactivitytracker on 2025-02-11T02:59:23+01:00
|
||||
#
|
||||
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
|
||||
#
|
||||
|
||||
app = 'tornactivitytracker'
|
||||
primary_region = 'fra'
|
||||
|
||||
[build]
|
||||
|
||||
[http_service]
|
||||
internal_port = 8080
|
||||
force_https = true
|
||||
auto_stop_machines = 'stop'
|
||||
auto_start_machines = true
|
||||
min_machines_running = 0
|
||||
processes = ['app']
|
||||
|
||||
[[vm]]
|
||||
size = 'shared-cpu-2x'
|
||||
Reference in New Issue
Block a user