-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (17 loc) · 949 Bytes
/
Copy pathDockerfile
File metadata and controls
22 lines (17 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Default to amd64-base-python to satisfy OpenSSF Scorecard Pinned-Dependencies check.
# The true base image is always injected by builder using build.yaml.
ARG BUILD_FROM="ghcr.io/home-assistant/amd64-base-python:3.14-alpine3.24@sha256:f59ecbbc63f781bf1215dd6b70f890a0487ff434ffc0fa721b368a5f4613d176"
FROM ${BUILD_FROM}
ENV LD_PRELOAD="/usr/local/lib/libjemalloc.so.2"
WORKDIR /
COPY pyproject.toml uv.lock /tmp/uv/
COPY rootfs /
# 0.11.2
COPY --from=ghcr.io/astral-sh/uv@sha256:d0a0a753ab981624b49c97abc98821c1c09f4ca69d1ef5cee69c501be3d88479 /uv /uvx /bin/
RUN --mount=type=cache,target=/root/.cache/uv \
cd /tmp/uv && uv export --frozen --no-dev --no-emit-project --no-hashes | \
uv pip install --link-mode=copy --system -r - && \
cd / && rm -rf /tmp/uv && \
chmod a+x /etc/services.d/s0pcm-reader/*
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD python3 /usr/src/healthcheck.py || exit 1