Skip to content

Commit 5caac46

Browse files
authored
Merge pull request #708 from atlanhq/APP-8817
[dockerfile] Fixed transient network issues that cause download corruption
2 parents 589c4c7 + 4138594 commit 5caac46

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

Dockerfile.wolfi

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
FROM cgr.dev/chainguard/wolfi-base
22

33
# Build arguments for configurable versions
4-
ARG PYTHON_VERSION=3.11
4+
ARG PYTHON_VERSION=3.13
55
ARG PYATLAN_VERSION=latest
66
ARG PYATLAN_BRANCH=""
77
ARG INSTALL_FROM_GIT=false
88

99
WORKDIR /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

0 commit comments

Comments
 (0)