fix: Upgrade pandas to 2.2.3 for Python 3.13 compatibility and fix Dockerfile build order
This commit is contained in:
parent
1c7bb9ca3a
commit
cc76eb652a
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user