Skip to content

Commit e22558d

Browse files
authored
Merge pull request #706 from atlanhq/APP-7913
[ci] Use root user pip install
2 parents 6606b35 + 5ab6708 commit e22558d

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Dockerfile.wolfi

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,16 @@ RUN apk add python-${PYTHON_VERSION} && \
1313
# Install uv
1414
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
1515

16-
USER nonroot
17-
18-
# Create uv cache directory with proper permissions
19-
RUN mkdir -p /home/nonroot/.cache/uv && \
20-
chown -R nonroot:nonroot /home/nonroot/.cache
21-
22-
# Install pyatlan from PyPI using uv pip install
23-
RUN --mount=type=cache,target=/home/nonroot/.cache/uv,uid=65532,gid=65532 \
16+
# Install pyatlan from PyPI using uv pip install (as root for --system)
17+
RUN --mount=type=cache,target=/root/.cache/uv \
2418
if [ "$PYATLAN_VERSION" = "latest" ]; then \
2519
uv pip install --system pyatlan; \
2620
else \
2721
uv pip install --system pyatlan==$PYATLAN_VERSION; \
2822
fi
2923

24+
USER nonroot
25+
3026
# Set environment variables
3127
ENV PYTHONPATH=/app
3228
ENV PATH="/home/nonroot/.local/bin:${PATH}"

0 commit comments

Comments
 (0)