Skip to content

Commit 83437b2

Browse files
author
Jay
committed
Update to docker based deploy
1 parent f5e92df commit 83437b2

File tree

3 files changed

+22
-39
lines changed

3 files changed

+22
-39
lines changed

Dockerfile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ARG PYTHON_VERSION=3.12.4
2+
FROM python:${PYTHON_VERSION}-slim
3+
WORKDIR /code
4+
COPY requirements.txt requirements.txt
5+
RUN pip3 install -r requirements.txt
6+
COPY . .
7+
EXPOSE 8080
8+
CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:app"]
9+

Procfile

-2
This file was deleted.

fly.toml

+13-37
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,18 @@
1-
# fly.toml file generated for plainoldrecipe on 2022-11-19T17:02:49-05:00
2-
3-
app = "plainoldrecipe"
4-
kill_signal = "SIGINT"
5-
kill_timeout = 5
6-
processes = []
1+
app = 'plainoldrecipe'
2+
primary_region = 'ewr'
73

84
[build]
9-
builder = "paketobuildpacks/builder:base"
10-
11-
[env]
12-
PORT = "8080"
13-
14-
[experimental]
15-
allowed_public_ports = []
16-
auto_rollback = true
17-
18-
[[services]]
19-
http_checks = []
20-
internal_port = 8000
21-
processes = ["app"]
22-
protocol = "tcp"
23-
script_checks = []
24-
[services.concurrency]
25-
hard_limit = 25
26-
soft_limit = 20
27-
type = "connections"
285

29-
[[services.ports]]
30-
force_https = true
31-
handlers = ["http"]
32-
port = 80
6+
[http_service]
7+
internal_port = 8080
8+
force_https = true
9+
auto_stop_machines = true
10+
auto_start_machines = true
11+
min_machines_running = 0
12+
processes = ['app']
3313

34-
[[services.ports]]
35-
handlers = ["tls", "http"]
36-
port = 443
14+
[[vm]]
15+
memory = '1gb'
16+
cpu_kind = 'shared'
17+
cpus = 1
3718

38-
[[services.tcp_checks]]
39-
grace_period = "1s"
40-
interval = "15s"
41-
restart_limit = 0
42-
timeout = "2s"

0 commit comments

Comments
 (0)