forked from hacs/integration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (25 loc) · 837 Bytes
/
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
FROM ghcr.io/ludeeus/alpine/python:3.10
WORKDIR /hacs
RUN \
apk add --no-cache \
libffi-dev \
\
&& apk add --no-cache --virtual .build-deps \
gcc \
musl-dev \
\
&& git clone --quiet --depth 1 https://github.com/hacs/integration.git /hacs \
\
&& bash /hacs/scripts/install/pip_packages setuptools wheel \
\
&& bash /hacs/scripts/install/pip_packages homeassistant aiogithubapi \
\
&& bash /hacs/scripts/install/frontend \
\
&& apk del --no-cache .build-deps > /dev/null 2>&1 \
\
&& rm -rf /var/cache/apk/* \
\
&& find /usr/local \( -type d -a -name test -o -name tests -o -name '__pycache__' \) -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) -exec rm -rf '{}' \;
COPY ./action.py /hacs/action.py
ENTRYPOINT ["python3", "/hacs/action.py"]