From cc76eb652ad3af3cf0ee691498546cbe145089a8 Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 6 Jan 2026 08:39:23 +0100 Subject: [PATCH] fix: Upgrade pandas to 2.2.3 for Python 3.13 compatibility and fix Dockerfile build order --- Dockerfile | 8 +++++--- requirements.txt | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7407a9e..10eb97d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,8 +18,11 @@ ARG GITHUB_TOKEN ARG GITHUB_REPO=ct/bmc_hub ARG GITEA_URL=https://g.bmcnetworks.dk +# Copy requirements first for better caching +COPY requirements.txt /tmp/requirements.txt + # If RELEASE_VERSION is set and not "latest", pull from GitHub release -# Otherwise, copy local files +# Otherwise, use local requirements RUN if [ "$RELEASE_VERSION" != "latest" ] && [ -n "$GITHUB_TOKEN" ]; then \ echo "Downloading release ${RELEASE_VERSION} from Gitea..." && \ curl -H "Authorization: token ${GITHUB_TOKEN}" \ @@ -31,11 +34,10 @@ RUN if [ "$RELEASE_VERSION" != "latest" ] && [ -n "$GITHUB_TOKEN" ]; then \ pip install --no-cache-dir -r requirements.txt; \ else \ echo "Using local files..." && \ - cp requirements.txt /tmp/requirements.txt && \ pip install --no-cache-dir -r /tmp/requirements.txt; \ fi -# Copy application code (only used if not downloading from GitHub) +# Copy application code COPY . . # Create necessary directories diff --git a/requirements.txt b/requirements.txt index 93911d4..e8f68cb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,5 +10,5 @@ aiohttp==3.10.10 msal==1.31.1 paramiko==3.4.1 apscheduler==3.10.4 -pandas==2.2.0 +pandas==2.2.3 openpyxl==3.1.2