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 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

View File

@ -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