-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 792 Bytes
/
Dockerfile
File metadata and controls
26 lines (19 loc) · 792 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
ARG BASE_IMAGE="ghcr.io/kestra-io/kestra-base:latest-no-plugins"
FROM ${BASE_IMAGE}
ARG KESTRA_PLUGINS=""
ARG APT_PACKAGES=""
ARG PYTHON_LIBRARIES=""
ENV PATH="/app/.venv/bin:$PATH"
COPY --chown=kestra:kestra docker /
RUN if [ -n "${APT_PACKAGES}" ]; then \
apt-get update -y && \
apt-get install -y --no-install-recommends ${APT_PACKAGES} && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*; \
fi && \
if [ -n "${KESTRA_PLUGINS}" ]; then /app/kestra plugins install ${KESTRA_PLUGINS} && rm -rf /tmp/*; fi && \
if [ -n "${PYTHON_LIBRARIES}" ]; then uv venv /app/.venv && uv pip install --python /app/.venv/bin/python ${PYTHON_LIBRARIES}; fi && \
chown -R kestra:kestra /app
USER kestra
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["--help"]