forked from bertybuttface/addons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (28 loc) · 1023 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
30
31
32
33
34
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-dockerfile
ARG BUILD_FROM
FROM $BUILD_FROM
# Execute during the build of the image
ARG TEMPIO_VERSION BUILD_ARCH
RUN \
curl -sSLf -o /usr/bin/tempio \
"https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${BUILD_ARCH}"
RUN apt-get update && apt-get -y install \
git \
python3-dev=3.9.2-3 \
python3-distutils=3.9.2-1 \
python3-minimal=3.9.2-3 \
ffmpeg \
libsm6 \
libxext6 \
&& curl https://bootstrap.pypa.io/get-pip.py | python3
# Copy root filesystem
COPY rootfs /
RUN mkdir /usr/app
WORKDIR /usr/app
RUN apt-get update && apt-get -y -o Dpkg::Options::="--force-confnew" install nginx
RUN git clone https://github.com/bertybuttface/WhosAtMyFeeder .
ENV CONFIG_PATH="/data/config.yaml"
RUN pip3 install --no-cache-dir -r requirements.txt && \
pip3 install gunicorn && \
apt-get remove -y git && apt-get autoremove -y && \
rm -rf /usr/app/.cache /usr/app/.cargo