Spaces:
Sleeping
Sleeping
Add Fly.io deployment config
Browse files- Dockerfile +1 -1
- fly.toml +25 -0
Dockerfile
CHANGED
|
@@ -10,4 +10,4 @@ COPY --chown=user ./requirements.txt requirements.txt
|
|
| 10 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 11 |
|
| 12 |
COPY --chown=user . /app
|
| 13 |
-
CMD ["
|
|
|
|
| 10 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 11 |
|
| 12 |
COPY --chown=user . /app
|
| 13 |
+
CMD ["sh", "-c", "gunicorn --bind 0.0.0.0:${PORT:-7860} app:app"]
|
fly.toml
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
app = "echo-tutor"
|
| 2 |
+
primary_region = "fra"
|
| 3 |
+
|
| 4 |
+
[build]
|
| 5 |
+
dockerfile = "Dockerfile"
|
| 6 |
+
|
| 7 |
+
[env]
|
| 8 |
+
PORT = "7860"
|
| 9 |
+
|
| 10 |
+
[http_service]
|
| 11 |
+
internal_port = 7860
|
| 12 |
+
force_https = true
|
| 13 |
+
auto_start_machines = true
|
| 14 |
+
auto_stop_machines = "stop"
|
| 15 |
+
min_machines_running = 0
|
| 16 |
+
|
| 17 |
+
[http_service.concurrency]
|
| 18 |
+
type = "connections"
|
| 19 |
+
hard_limit = 50
|
| 20 |
+
soft_limit = 25
|
| 21 |
+
|
| 22 |
+
[[vm]]
|
| 23 |
+
memory = "1024mb"
|
| 24 |
+
cpu_kind = "shared"
|
| 25 |
+
cpus = 1
|