Skip to content

Commit 19d19ba

Browse files
committed
WIP
1 parent 4c8fe2f commit 19d19ba

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ RUN mise trust --all
4343
VOLUME ["/tmp"]
4444

4545
ENV PORT=5000
46-
CMD ["sh", "-c", "mise exec -- uv run --no-sync gunicorn --bind 0.0.0.0:${PORT} 'mavis.reporting:create_app()'"]
46+
CMD ["mise", "-C", "/app", "run", "start"]

mise.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ description = "Build and run Docker container"
137137
depends = ["docker:build"]
138138
run = "MISE_SOPS_AGE_KEY=$(cat config/credentials/staging.key) mise docker:run"
139139

140+
[tasks.start]
141+
description = "Start the application with gunicorn"
142+
run = "uv run --no-sync gunicorn --bind 0.0.0.0:${PORT:-5000} 'mavis.reporting:create_app()'"
143+
140144
[tasks.ci]
141145
description = "Run CI checks in parallel"
142146
depends = ["gitleaks", "lint", "test", "typecheck"]

0 commit comments

Comments
 (0)