forked from pstauffer/docker-homeassistant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (20 loc) · 986 Bytes
/
Dockerfile
File metadata and controls
29 lines (20 loc) · 986 Bytes
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 arm64v8/python:3-alpine
MAINTAINER Herjan van Eijk <docker@f28.nl>
VOLUME /config
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY custom_require.txt requirements_all.txt
RUN apk --update --no-cache add libffi ca-certificates curl \
bash nmap net-tools eudev yaml musl openssl ffmpeg ffmpeg-libs mariadb-client mariadb-connector-c && \
apk --update --no-cache add --virtual .build-dependencies ffmpeg-dev eudev-dev yaml-dev make \
linux-headers musl-dev gcc g++ autoconf openssl-dev libffi-dev mariadb-dev && \
pip3 --no-cache-dir install pyotp pychromecast Cython wheel six mysqlclient setuptools homeassistant && \
pip3 --no-cache-dir install -r requirements_all.txt && \
apk del .build-dependencies
#python3 -m ensurepip && \
#rm -r /usr/lib/python*/ensurepip && \
EXPOSE 8123
# Copy source COPY . .
CMD [ "python3", "-m", "homeassistant", "--config", "/config" ]
# First image 451MB,
# CalDAV: py3-lxml && \ libxml2-dev libxslt-dev && \