File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM cgr.dev/chainguard/wolfi-base
22
33# Build arguments for configurable versions
4- ARG PYTHON_VERSION=3.11
4+ ARG PYTHON_VERSION=3.13
55ARG PYATLAN_VERSION=latest
66ARG PYATLAN_BRANCH=""
77ARG INSTALL_FROM_GIT=false
88
99WORKDIR /app
1010
1111# Install Python and git (needed for git-based installations)
12- RUN apk add python-${PYTHON_VERSION} git && \
12+ # Update package index and use --no-cache to avoid download corruption issues
13+ # Add retry logic to handle transient network issues
14+ # Clean up package cache in same layer to avoid increasing image size
15+ RUN for i in 1 2 3; do \
16+ apk update && \
17+ apk add --no-cache python-${PYTHON_VERSION} git && \
18+ break || \
19+ (echo "Attempt $i failed, retrying..." && sleep 5); \
20+ done && \
21+ rm -rf /var/cache/apk/* && \
1322 chown -R nonroot:nonroot /app/
1423
1524# Install uv
You can’t perform that action at this time.
0 commit comments