-
Notifications
You must be signed in to change notification settings - Fork 63
docker arch refactor #224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker arch refactor #224
Changes from all commits
6db1436
adf87bc
021ac4f
36d363c
15ea8a3
84061b5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -1,32 +1,28 @@ | ||||||||
| FROM ubuntu:oracular AS build | ||||||||
| FROM ubuntu:25.10 AS base | ||||||||
|
|
||||||||
| RUN apt-get update -qy && apt-get install -qyy \ | ||||||||
| RUN apt-get update -qy \ | ||||||||
| && apt-get install -qyy \ | ||||||||
| -o APT::Install-Recommends=false \ | ||||||||
| -o APT::Install-Suggests=false \ | ||||||||
| build-essential \ | ||||||||
| ca-certificates \ | ||||||||
| python3-setuptools \ | ||||||||
| python3.13-dev \ | ||||||||
| git | ||||||||
| python3.14-dev | ||||||||
|
|
||||||||
|
|
||||||||
| COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv | ||||||||
| COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ | ||||||||
|
||||||||
| COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ | |
| COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/ |
Copilot
AI
Nov 13, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The UV_PYTHON_DOWNLOADS=never environment variable has been removed. This was likely intentional to allow uv to download Python if needed, but combined with the change to Python 3.14 (which may not be available), this could cause unexpected behavior. If the intention is to use only system Python, this should be kept as UV_PYTHON_DOWNLOADS=never.
| UV_PYTHON=python3.14 \ | |
| UV_PYTHON=python3.14 \ | |
| UV_PYTHON_DOWNLOADS=never \ |
Copilot
AI
Nov 13, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The --no-dev flag has been removed from the uv sync command. This means development dependencies will now be installed in the production Docker image, increasing the image size unnecessarily. If this is a production image, add back --no-dev to exclude development dependencies.
| RUN cd /_lock && uv sync --locked --no-install-project | |
| RUN cd /_lock && uv sync --locked --no-install-project --no-dev |
Copilot
AI
Nov 13, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The libxml2 dependency has been removed. If the application or any of its dependencies (such as lxml, which is commonly used) require libxml2, this will cause runtime errors. Verify that this dependency is truly unnecessary before removing it.
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -1,15 +1,15 @@ | ||||||||
| [project] | ||||||||
| name = "fastapi-sqlalchemy-asyncpg" | ||||||||
| version = "0.21.0" | ||||||||
| version = "0.22.0" | ||||||||
| description = "A modern FastAPI application with SQLAlchemy 2.0 and AsyncPG for high-performance async database operations. Features include JWT authentication with Redis token storage, password hashing, connection pooling, data processing with Polars, Rich logging, task scheduling with APScheduler, and Shakespeare datasets integration." | ||||||||
| readme = "README.md" | ||||||||
| requires-python = ">=3.13" | ||||||||
| requires-python = ">=3.14" | ||||||||
| dependencies = [ | ||||||||
| "fastapi[all]>=0.116.2", | ||||||||
| "pydantic[email]>=2.12.0a1", | ||||||||
| "pydantic-settings>=2.10.1", | ||||||||
| "sqlalchemy>=2.0.43", | ||||||||
| "uvicorn[standard]>=0.36.0", | ||||||||
| "sqlalchemy==2.0.44", | ||||||||
| "uvicorn==0.38.0", | ||||||||
| "asyncpg>=0.30.0", | ||||||||
| "alembic>=1.16.5", | ||||||||
| "httpx>=0.28.1", | ||||||||
|
|
@@ -21,15 +21,15 @@ dependencies = [ | |||||||
| "pyjwt>=2.10.1", | ||||||||
| "redis>=6.4.0", | ||||||||
| "bcrypt>=4.3.0", | ||||||||
| "polars[pyarrow]>=1.33.1", | ||||||||
| "polars==1.35.2", | ||||||||
|
||||||||
| "polars==1.35.2", | |
| "polars==1.35.2", | |
| "pyarrow>=14.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
gitpackage has been removed from the build dependencies. If any Python packages need to be installed from git repositories (as was done in the old pyproject.old with pendulum), or if any dependencies use git during their build process, this will cause the build to fail. Verify that git is not needed before removing it.