Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
#While incubation status is not necessarily a reflection of the completeness or stability of the code,
#it does indicate that the project has yet to be fully endorsed by the ASF.

# uv (Python package manager) is copied from its official image instead of
# being downloaded by the install script at build time, so the version is
# pinned and Dependabot keeps it current through this FROM line.
FROM ghcr.io/astral-sh/uv:0.13.7 as uv

FROM --platform=$BUILDPLATFORM golang:1.27-bookworm as builder

# docker build --build-arg GOPROXY=https://goproxy.io,direct -t mericodev/lake .
Expand Down Expand Up @@ -105,8 +110,10 @@ COPY --chown=devlake:0 python/ /app/python/
RUN python3 -m pip install --no-cache --upgrade pip setuptools && \
python3 -m pip install --no-cache -r python/requirements.txt && \
python3 -m pip install --upgrade pip && \
curl -LsSf https://astral.sh/uv/install.sh | env UV_UNMANAGED_INSTALL=/app/.local/bin sh && \
chgrp -R 0 /app/.local && chmod -R g=u /app/.local
# Copied after the chgrp above so that it does not rewrite the binaries in a
# second layer; they are already world-executable.
COPY --from=uv --chown=devlake:0 /uv /uvx /app/.local/bin/
ENV PATH="/app/.local/bin:${PATH}"

# Build Python plugins, make sure the scripts has execute permission
Expand Down
5 changes: 4 additions & 1 deletion devops/docker/lake-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
# limitations under the License.
#

# uv version matches backend/Dockerfile; Dependabot updates both FROM lines.
FROM ghcr.io/astral-sh/uv:0.13.7 AS uv

# Same Python line as the runtime image in backend/Dockerfile.
FROM python:3.11-slim-bookworm

Expand Down Expand Up @@ -47,4 +50,4 @@ ENV GOROOT=
ENV PATH=${GOPATH}/bin:${PATH}

# Python package manager
RUN curl -LsSf https://astral.sh/uv/install.sh | env UV_UNMANAGED_INSTALL=/usr/local/bin sh
COPY --from=uv /uv /uvx /usr/local/bin/
Loading