Skip to content

Commit

Permalink
chore: use dockerfile instead of buildpack
Browse files Browse the repository at this point in the history
  • Loading branch information
pikdum committed Aug 9, 2024
1 parent 3bf9d2e commit 9b1b8d3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
fly.toml

.git
.venv
.ruff_cache
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV UVICORN_PORT=8080
ENV UVICORN_HOST=0.0.0.0
CMD ["uvicorn", "mona.app:app"]
1 change: 0 additions & 1 deletion Procfile

This file was deleted.

11 changes: 0 additions & 11 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,12 @@
app = "wild-fire-3987"
primary_region = "ord"

[build]
builder = "paketobuildpacks/builder-jammy-base:latest"

[build.args]
BP_CPYTHON_VERSION = "3.12"

[env]
UVICORN_PORT = "8080"
UVICORN_HOST = "0.0.0.0"

[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = false
auto_start_machines = false
min_machines_running = 1
processes = ["app"]

[[http_service.checks]]
grace_period = "2s"
Expand Down

0 comments on commit 9b1b8d3

Please sign in to comment.