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
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build stage
FROM python:3.13-slim as builder
FROM python:3.14-slim as builder

Check warning on line 2 in Dockerfile

View workflow job for this annotation

GitHub Actions / build

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 2 in Dockerfile

View workflow job for this annotation

GitHub Actions / build

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

WORKDIR /app

Expand All @@ -19,7 +19,7 @@
RUN pip install --no-cache-dir -r requirements.txt

# Runtime stage
FROM python:3.13-slim
FROM python:3.14-slim

WORKDIR /app

Expand All @@ -39,8 +39,8 @@
&& mkdir -p /app/instance \
&& chown -R appuser:appgroup /app

# Copy installed packages from builder stage
COPY --from=builder /usr/local/lib/python3.13/site-packages /usr/local/lib/python3.13/site-packages
# Copy installed packages from builder stage (version-agnostic)
COPY --from=builder /usr/local/lib/ /usr/local/lib/
Copy link

Copilot AI Oct 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copying the entire /usr/local/lib/ directory may include unnecessary files and increase image size. The previous version-specific approach was more precise. Consider using a more targeted copy pattern like /usr/local/lib/python*/site-packages to maintain version-agnostic behavior while avoiding unnecessary files.

Suggested change
COPY --from=builder /usr/local/lib/ /usr/local/lib/
COPY --from=builder /usr/local/lib/python*/site-packages /usr/local/lib/python*/site-packages

Copilot uses AI. Check for mistakes.
COPY --from=builder /usr/local/bin /usr/local/bin

# Copy application files and set ownership
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ Werkzeug==3.1.3
requests==2.32.5

# Database drivers
psycopg[binary,pool]==3.2.3
PyMySQL==1.1.1
psycopg[binary,pool]==3.2.10
PyMySQL==1.1.2