generated from home-assistant/addons-example
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.standalone
29 lines (23 loc) · 927 Bytes
/
Dockerfile.standalone
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
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-dockerfile
FROM python:3.10-slim
# Build arguments
ARG BUILD_DATE
ARG BUILD_DESCRIPTION
ARG BUILD_NAME
ARG BUILD_REF
ARG BUILD_REPOSITORY
ARG BUILD_VERSION
LABEL \
org.opencontainers.image.source="https://github.com/unl0ck/homeassistant-addon-viessmann-gridbox" \
org.opencontainers.image.authors="Simon Helming <simon@helming.xyz>" \
maintainer="Simon Helming <simon@helming.xyz>"\
org.opencontainers.image.created=${BUILD_DATE} \
org.opencontainers.image.revision=${BUILD_REF} \
org.opencontainers.image.version=${BUILD_VERSION}
RUN apt-get update && \
apt-get install -y gcc g++ && \
rm -rf /var/lib/apt/lists/*
# Copy root filesystem
COPY GridboxConnectorAddon-edge/GridboxConnector/ /build/GridboxConnector
RUN cd /build/GridboxConnector && pip install -r requirements.txt
ENTRYPOINT ["python3", "/build/GridboxConnector"]