Skip to content
Closed
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
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

41 changes: 0 additions & 41 deletions SECURITY.md

This file was deleted.

27 changes: 27 additions & 0 deletions app/backend/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,34 @@
# Git
.git
.gitignore

# Python
__pycache__
*.pyc
*.pyo
*.pyd
.Python
env
.env
.venv
*.egg-info/
.pytest_cache/
.coverage
.mypy_cache/
.ruff_cache/

# Development files
*.md
.vscode/
.idea/

# Docker
Dockerfile
.dockerignore

# UV cache (not needed in container)
.uv-cache/

# OS
.DS_Store
Thumbs.db
1 change: 1 addition & 0 deletions app/backend/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11.8
38 changes: 33 additions & 5 deletions app/backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,39 @@
FROM python:3.11-bullseye
FROM python:3.11-slim as builder

# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/

# Set environment variables for uv
ENV UV_COMPILE_BYTECODE=1
ENV UV_LINK_MODE=copy

# Create app directory
WORKDIR /app

COPY ./ /app
# Copy essential project files
# Copy dependency files
COPY pyproject.toml ./pyproject.toml
COPY uv.lock ./uv.lock

# Install dependencies with uv (creates .venv)
RUN uv sync --frozen --no-dev

# Production stage
FROM python:3.11-slim

# Copy the virtual environment from builder stage
COPY --from=builder /app/.venv /app/.venv

# Set working directory
WORKDIR /app

RUN python -m pip install -r requirements.txt
# Copy application code
COPY . .

RUN python -m pip install gunicorn
# Ensure we use the venv and set Python path
ENV PATH="/app/.venv/bin:$PATH"
ENV PYTHONPATH="/app:$PYTHONPATH"

CMD ["python3", "-m", "gunicorn", "-b", "0.0.0.0:8000", "main:app"]
# Run the application
EXPOSE 8000
CMD ["python", "-m", "gunicorn", "-c", "gunicorn.conf.py", "hrchatbot.main:app"]
222 changes: 0 additions & 222 deletions app/backend/approaches/chatreadretrievereadvision.py

This file was deleted.

Loading
Loading