forked from adt-pulse-mqtt/adt-pulse-mqtt
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (31 loc) · 1.19 KB
/
Dockerfile
File metadata and controls
41 lines (31 loc) · 1.19 KB
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
ARG BUILD_FROM
FROM $BUILD_FROM
ENV LANG=C.UTF-8
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apk add --no-cache \
nodejs \
npm
RUN mkdir /usr/src/app
WORKDIR /usr/src/app
# Install app dependencies
COPY ["package.json", "."]
RUN npm install --production
# Bundle app source
COPY [".", "."]
# Copy data for add-on
COPY run.sh /
RUN chmod a+x /run.sh
CMD [ "/run.sh" ]
# Labels
ARG BUILD_DESCRIPTION="ADT Pulse bridge for Home Assistant using MQTT"
ARG BUILD_NAME="ADT Pulse bridge for Home Assistant using MQTT Node18"
ARG BUILD_REPOSITORY="BigThunderSR/adt-pulse-mqtt"
LABEL \
maintainer="BigThunderSR (https://github.com/BigThunderSR)" \
org.opencontainers.image.title="${BUILD_NAME}" \
org.opencontainers.image.description="${BUILD_DESCRIPTION}" \
org.opencontainers.image.vendor="ADT Pulse bridge for Home Assistant using MQTT" \
org.opencontainers.image.authors="BigThunderSR (https://github.com/BigThunderSR)" \
org.opencontainers.image.url="https://github.com/BigThunderSR" \
org.opencontainers.image.source="https://github.com/${BUILD_REPOSITORY}" \
org.opencontainers.image.documentation="https://github.com/${BUILD_REPOSITORY}/blob/main/README.md"