Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions Dockerfile.uat
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@ COPY . /app
WORKDIR /app
RUN uv sync --frozen --no-cache

# Set PYTHONPATH to include the root directory
ENV PYTHONPATH=/app

# Run the application using uvicorn with the correct module path
CMD ["/app/.venv/bin/uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
# Run the application.
CMD ["/app/.venv/bin/fastapi", "run", "app/main.py", "--port", "8000", "--host", "0.0.0.0"]
2 changes: 1 addition & 1 deletion app/infrastructure/redis_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


@lru_cache
def get_redis() -> Redis:
def get_redis() -> Redis[str]:
if settings.redis_url:
return Redis.from_url(
settings.redis_url,
Expand Down
1 change: 1 addition & 0 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
app_dir = Path(__file__).parent
sys.path.insert(0, str(app_dir))


settings = get_settings()

app = FastAPI(
Expand Down