-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.armhf
57 lines (45 loc) · 1.2 KB
/
Dockerfile.armhf
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
FROM arm32v7/python:3.5-slim-stretch
# Mount extra apps and app.yaml
# Will be copied to the correct path
VOLUME /apps
# Mount dashboard config files
# Will be copied to the correct path
VOLUME /dashboards
# API Url
EXPOSE 5000
# Dashboard Url
EXPOSE 5050
# Environment vars we can configure against
# But these are optional, so we won't define them now
#ENV API_KEY secret_key
#ENV HA_URL http://hass:8123
#ENV HA_TOKEN your_long_lived_access_token_from_hass
#ENV DASH_URL http://hass:5050
#ENV EXTRA_CMD -D DEBUG
# Copy appdaemon into image
RUN mkdir -p /appdaemon
WORKDIR /appdaemon
RUN apt-get update -yy && apt-get install -yy \
libffi6 \
libffi-dev
# RUN apt-get update -yy && apt-get install -yy \
# cython \
# python3-lxml \
# libffi6 \
# libffi-dev \
# libxslt-dev \
# libxml2-dev \
# zlib1g-dev
# Upgrades pip
RUN pip3 install pip --upgrade
# First copy th requirements and re-use any existing docker layer's
# so far no requirements changed...
COPY requirements.txt .
# Install deps
RUN pip3 install \
--extra-index-url https://www.piwheels.hostedpi.com/simple \
-r requirements.txt
COPY . .
# Start script
RUN chmod +x ./entrypoint.sh
CMD [ "./entrypoint.sh" ]