update Dockerfile

This commit is contained in:
saidsurucu
2025-06-29 20:39:22 +03:00
parent 553bf61106
commit 3746804b20
2 changed files with 3 additions and 21 deletions
-18
View File
@@ -1,18 +0,0 @@
# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
name: Fly Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
concurrency: deploy-group # optional: ensure only one action runs at a time
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
+3 -3
View File
@@ -1,5 +1,5 @@
# -------- BASE IMAGE (includes Chromium & deps) ----------------------------
FROM mcr.microsoft.com/playwright/python:v1.52.0-jammy # Playwright docs
FROM mcr.microsoft.com/playwright/python:v1.52.0-jammy
# -------- Runtime setup ----------------------------------------------------
WORKDIR /app
@@ -9,14 +9,14 @@ COPY pyproject.toml poetry.lock* requirements*.txt* ./
# Fast, deterministic install with `uv`
RUN pip install --no-cache-dir uv && \
uv pip install --system --no-cache-dir .[asgi] # installs FastMCP, FastAPI
uv pip install --system --no-cache-dir .[asgi]
# Copy application source
COPY . .
# -------- Environment ------------------------------------------------------
ENV PYTHONUNBUFFERED=1
ENV ENABLE_AUTH=true # Clerk JWT validation ON by default
ENV ENABLE_AUTH=true
ENV PORT=8000
# -------- Health check -----------------------------------------------------