forked from kestra-io/kestra
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.base
More file actions
29 lines (23 loc) · 874 Bytes
/
Copy pathDockerfile.base
File metadata and controls
29 lines (23 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ARG JRE_VERSION="25"
FROM eclipse-temurin:${JRE_VERSION}-jre
ARG UV_VERSION="0.6.17"
ARG WITH_PYTHON="false"
RUN groupadd kestra && \
useradd -m -g kestra kestra
WORKDIR /app
RUN apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends curl jattach && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/*
RUN curl -LsSf "https://astral.sh/uv/${UV_VERSION}/install.sh" | sh && \
mv /root/.local/bin/uv /bin && \
mv /root/.local/bin/uvx /bin
RUN if [ "$WITH_PYTHON" = "true" ]; then \
apt-get update -y && \
apt-get install -y --no-install-recommends python3 python-is-python3 python3-pip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
uv venv /app/.venv && \
PURE_PYTHON=1 uv pip install --python /app/.venv/bin/python kestra; \
fi