-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
82 lines (72 loc) · 2.29 KB
/
Copy pathDockerfile
File metadata and controls
82 lines (72 loc) · 2.29 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
FROM ghcr.io/trueforge-org/python:3.14.5@sha256:c1237b4ee242c9d67a1bae2611ab92f45e8c39da8835a974e4dd49d43077c353
ARG TARGETARCH
ARG TARGETARCH=${TARGETARCH/arm64/aarch64}
ARG TARGETARCH=${TARGETARCH/arm64/aarch64}
ARG VERSION
ENV HOME="/config" \
PYTHONUSERBASE="/usr/local"
USER root
WORKDIR /app
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Install runtime and build dependencies
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
binutils \
bluez \
bluez-cups \
cups \
udev \
ffmpeg \
git \
hwdata \
libimlib2 \
iperf3 \
iputils-ping \
libcap2 \
libftdi1 \
libgpiod2 \
libturbojpeg0-dev \
libpulse0 \
libstdc++6 \
libxslt1.1 \
libzbar0 \
mailcap \
libmariadb3 \
net-tools \
nmap \
openssh-client \
openssl \
pianobar \
libpq5 \
pulseaudio \
socat \
libtiff6 \
unzip \
build-essential \
default-libmysqlclient-dev \
libpq-dev \
pkg-config \
autoconf \
build-essential \
libffi-dev \
&& rm -rf /var/lib/apt/lists/*
# Install Python packages and Home Assistant
RUN pip3 install --no-cache-dir psycopg2; \
pip3 install --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ \
--requirement "https://raw.githubusercontent.com/home-assistant/core/refs/tags/${VERSION}/requirements.txt"; \
pip3 install --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ \
--requirement "https://raw.githubusercontent.com/home-assistant/core/refs/tags/${VERSION}/requirements_all.txt"; \
pip3 install --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ homeassistant=="${VERSION}"; \
cp /etc/ssl/certs/ca-certificates.crt /etc/ca-certificates.crt; \
chmod 644 /etc/ca-certificates.crt; \
curl -fsSL -o /bin/go2rtc "https://github.com/AlexxIT/go2rtc/releases/latest/download/go2rtc_linux_${TARGETARCH}"; \
chmod +x /bin/go2rtc; \
mkdir -p /config && chown 568:568 -R /config; \
rm -rf /root/.cache /tmp/*
USER apps
COPY --chmod=0755 . /
COPY --chmod=0775 . /
WORKDIR /config
VOLUME ["/config"]
CMD []