generated from ludeeus/integration_blueprint
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
65 lines (54 loc) · 1.22 KB
/
Dockerfile
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
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
ARG PYTHON_VERSION=3.12.3
ARG HASS_BRANCH=2024.5.1
ENV PYENV_ROOT=/opt/pyenv
ENV PATH=${PYENV_ROOT}/bin:${PYENV_ROOT}/shims:${PATH}
COPY config/configuration.yaml /hass/
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
autoconf \
bluez \
build-essential \
ca-certificates \
cmake \
curl \
ffmpeg \
git \
libavcodec-dev \
libavdevice-dev \
libavfilter-dev \
libavformat-dev \
libavutil-dev \
libbz2-dev \
libffi-dev \
libjpeg-dev \
liblzma-dev \
libncursesw5-dev \
libpcap-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
libswresample-dev \
libswscale-dev \
libudev-dev \
libxml2-dev \
libxmlsec1-dev \
libxslt1-dev \
libyaml-dev \
pkg-config \
tk-dev \
xz-utils \
zlib1g-dev
WORKDIR /opt
RUN git clone https://github.com/pyenv/pyenv.git && \
echo 'eval "$(pyenv init -)"' >> /etc/profile && \
pyenv install ${PYTHON_VERSION} && \
pyenv global ${PYTHON_VERSION}
WORKDIR /opt/hass
RUN git clone --depth=1 https://github.com/home-assistant/core.git --branch ${HASS_BRANCH}
WORKDIR /opt/hass/core
RUN ./script/setup
WORKDIR /hass
EXPOSE 8123