Skip to content
Draft
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
17 changes: 5 additions & 12 deletions apps/getmail/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
# syntax=docker/dockerfile:1

FROM docker.io/library/python:3.13-alpine3.22

ARG VERSION

ENV \
PIP_BREAK_SYSTEM_PACKAGES=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1 \
PIP_ROOT_USER_ACTION=ignore \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
UV_NO_CACHE=true \
UV_SYSTEM_PYTHON=true \
UV_EXTRA_INDEX_URL="https://wheel-index.linuxserver.io/alpine-3.22/"

USER root
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/

#hadolint ignore=DL3018,DL3013
RUN apk add --no-cache \
Expand All @@ -27,10 +22,8 @@ RUN apk add --no-cache \
openssl-dev \
musl-dev \
&& \
pip install uv \
&& uv pip install \
getmail6=="${VERSION}" \
&& pip uninstall --yes uv \
uv pip install --system getmail6=="${VERSION}" \
&& rm /bin/uv /bin/uvx \
&& apk del --purge .build-deps \
&& rm -rf \
/root/.cache \
Expand Down
18 changes: 5 additions & 13 deletions apps/k8s-crd-extractor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,20 @@ FROM docker.io/library/python:3.13-alpine3.22
ARG VERSION

ENV \
CRYPTOGRAPHY_DONT_BUILD_RUST=1 \
PIP_BREAK_SYSTEM_PACKAGES=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1 \
PIP_ROOT_USER_ACTION=ignore \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
UV_NO_CACHE=true \
UV_SYSTEM_PYTHON=true \
UV_EXTRA_INDEX_URL="https://wheel-index.linuxserver.io/alpine-3.22/"

COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/

RUN \
apk add --no-cache \
bash \
ca-certificates \
catatonit \
kubectl \
&& \
pip install uv \
&& \
uv pip install \
pyyaml \
&& pip uninstall --yes uv \
uv pip install --system pyyaml \
&& rm /bin/uv /bin/uvx \
&& rm -rf /tmp/*

USER nobody:nogroup
Expand Down
Loading