fix: Upgrade pandas to 2.2.3 for Python 3.13 compatibility and fix Dockerfile build order

This commit is contained in:
Christian 2026-01-06 08:39:23 +01:00
parent 1c7bb9ca3a
commit cc76eb652a
2 changed files with 6 additions and 4 deletions

View File

@ -18,8 +18,11 @@ ARG GITHUB_TOKEN
ARG GITHUB_REPO=ct/bmc_hub ARG GITHUB_REPO=ct/bmc_hub
ARG GITEA_URL=https://g.bmcnetworks.dk 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 # 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 \ RUN if [ "$RELEASE_VERSION" != "latest" ] && [ -n "$GITHUB_TOKEN" ]; then \
echo "Downloading release ${RELEASE_VERSION} from Gitea..." && \ echo "Downloading release ${RELEASE_VERSION} from Gitea..." && \
curl -H "Authorization: token ${GITHUB_TOKEN}" \ 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; \ pip install --no-cache-dir -r requirements.txt; \
else \ else \
echo "Using local files..." && \ echo "Using local files..." && \
cp requirements.txt /tmp/requirements.txt && \
pip install --no-cache-dir -r /tmp/requirements.txt; \ pip install --no-cache-dir -r /tmp/requirements.txt; \
fi fi
# Copy application code (only used if not downloading from GitHub) # Copy application code
COPY . . COPY . .
# Create necessary directories # Create necessary directories

View File

@ -10,5 +10,5 @@ aiohttp==3.10.10
msal==1.31.1 msal==1.31.1
paramiko==3.4.1 paramiko==3.4.1
apscheduler==3.10.4 apscheduler==3.10.4
pandas==2.2.0 pandas==2.2.3
openpyxl==3.1.2 openpyxl==3.1.2