Skip to content

Commit 22b1162

Browse files
committed
use multi-stage to install UV
1 parent 9b8f363 commit 22b1162

File tree

20 files changed

+100
-20
lines changed

20 files changed

+100
-20
lines changed

packages/postgres-database/scripts/erd/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# syntax=docker/dockerfile:1
2+
3+
# Define arguments in the global scope
24
ARG PYTHON_VERSION="3.11.9"
3-
FROM python:${PYTHON_VERSION}-slim-bookworm AS base
5+
ARG UV_VERSION="0.4"
6+
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv_build
7+
# we docker image is built based on debianFROM python:${PYTHON_VERSION}-slim-bookworm AS base
48

59
RUN apt-get update \
610
&& apt-get -y install --no-install-recommends\

packages/service-integration/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# syntax=docker/dockerfile:1
2+
3+
# Define arguments in the global scope
24
ARG PYTHON_VERSION="3.11.9"
3-
FROM python:${PYTHON_VERSION}-slim-bookworm AS base
5+
ARG UV_VERSION="0.4"
6+
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv_build
7+
# we docker image is built based on debianFROM python:${PYTHON_VERSION}-slim-bookworm AS base
48

59
LABEL maintainer=pcrespov
610

scripts/apt-packages-versions/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# syntax=docker/dockerfile:1
2+
3+
# Define arguments in the global scope
24
ARG PYTHON_VERSION="3.11.9"
3-
FROM python:${PYTHON_VERSION}-slim-bookworm AS base
5+
ARG UV_VERSION="0.4"
6+
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv_build
7+
# we docker image is built based on debianFROM python:${PYTHON_VERSION}-slim-bookworm AS base
48

59
RUN \
610
apt-get update && \

services/agent/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# syntax=docker/dockerfile:1
2+
3+
# Define arguments in the global scope
24
ARG PYTHON_VERSION="3.11.9"
3-
FROM python:${PYTHON_VERSION}-slim-bookworm AS base
5+
ARG UV_VERSION="0.4"
6+
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv_build
7+
# we docker image is built based on debianFROM python:${PYTHON_VERSION}-slim-bookworm AS base
48

59
#
610
# USAGE:

services/api-server/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# syntax=docker/dockerfile:1
2+
3+
# Define arguments in the global scope
24
ARG PYTHON_VERSION="3.11.9"
3-
FROM python:${PYTHON_VERSION}-slim-bookworm AS base
5+
ARG UV_VERSION="0.4"
6+
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv_build
7+
# we docker image is built based on debianFROM python:${PYTHON_VERSION}-slim-bookworm AS base
48
#
59
# USAGE:
610
# cd sercices/api-server

services/catalog/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# syntax=docker/dockerfile:1
2+
3+
# Define arguments in the global scope
24
ARG PYTHON_VERSION="3.11.9"
3-
FROM python:${PYTHON_VERSION}-slim-bookworm AS base
5+
ARG UV_VERSION="0.4"
6+
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv_build
7+
# we docker image is built based on debianFROM python:${PYTHON_VERSION}-slim-bookworm AS base
48
#
59
#
610
# USAGE:

services/clusters-keeper/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# syntax=docker/dockerfile:1
2+
3+
# Define arguments in the global scope
24
ARG PYTHON_VERSION="3.11.9"
3-
FROM python:${PYTHON_VERSION}-slim-bookworm AS base
5+
ARG UV_VERSION="0.4"
6+
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv_build
7+
# we docker image is built based on debianFROM python:${PYTHON_VERSION}-slim-bookworm AS base
48

59
#
610
# USAGE:

services/dask-sidecar/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# syntax=docker/dockerfile:1
2+
3+
# Define arguments in the global scope
24
ARG PYTHON_VERSION="3.11.9"
3-
FROM --platform=${TARGETPLATFORM} python:${PYTHON_VERSION}-slim-bookworm AS base
5+
ARG UV_VERSION="0.4"
6+
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv_build
7+
# we docker image is built based on debianFROM --platform=${TARGETPLATFORM} python:${PYTHON_VERSION}-slim-bookworm AS base
48
ARG TARGETPLATFORM
59
ARG BUILDPLATFORM
610
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" > /log

services/datcore-adapter/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# syntax=docker/dockerfile:1
2+
3+
# Define arguments in the global scope
24
ARG PYTHON_VERSION="3.11.9"
3-
FROM python:${PYTHON_VERSION}-slim-bookworm AS base
5+
ARG UV_VERSION="0.4"
6+
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv_build
7+
# we docker image is built based on debianFROM python:${PYTHON_VERSION}-slim-bookworm AS base
48

59
#
610
# USAGE:

services/director-v2/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# syntax=docker/dockerfile:1
2+
3+
# Define arguments in the global scope
24
ARG PYTHON_VERSION="3.11.9"
3-
FROM python:${PYTHON_VERSION}-slim-bookworm AS base
5+
ARG UV_VERSION="0.4"
6+
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv_build
7+
# we docker image is built based on debianFROM python:${PYTHON_VERSION}-slim-bookworm AS base
48

59
#
610
# USAGE:

0 commit comments

Comments
 (0)