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
4 changes: 2 additions & 2 deletions src/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ WORKDIR /app
RUN --mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=uv.lock,target=uv.lock \
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
uv sync --locked --no-install-project --no-editable
uv sync --locked --no-install-project --no-editable --no-dev

# Copy the project into the intermediate image
COPY . /app

# Sync the project and install it, now that we have access to the source code
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --locked --no-editable
uv sync --locked --no-editable --no-dev

FROM python:3.13-alpine

Expand Down
19 changes: 10 additions & 9 deletions src/backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,7 @@ description = "Backend API for tracking study time for DevOps certifications"
readme = "README.md"
authors = [{ name = "aadil96", email = "agwan96@gmail.com" }]
requires-python = ">=3.13"
dependencies = [
"fastapi>=0.121.2",
"httpx>=0.28.1",
"pytest>=9.0.1",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0.0",
"ruff>=0.14.5",
"uvicorn>=0.38.0",
]
dependencies = ["fastapi>=0.121.2", "uvicorn>=0.38.0"]

[project.scripts]
study-tracker-api = "backend.main:main"
Expand All @@ -27,3 +19,12 @@ packages = ["src/backend"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[dependency-groups]
dev = [
"httpx>=0.28.1",
"pytest>=9.0.1",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0.0",
"ruff>=0.14.5",
]
12 changes: 10 additions & 2 deletions src/backend/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.