forked from n0rt0nthec4t/Nest_accfactory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (25 loc) · 1.07 KB
/
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
# base upon nodejs lts, apline version for smaller container size
FROM node:lts-alpine as builder
# Enable correct timezone inside container
# Pass TZ env from docker run
RUN apk update && apk add --no-cache tzdata
# working directory inside the container
WORKDIR /opt/Nest_accfactory
# copy require files into container image folder
COPY package.json ./
COPY Nest_accfactory.js ./
COPY Nest_camera_*.jpg ./
COPY HomeKitHistory.js ./
COPY HomeKitDevice.js ./
COPY nexusstreamer.js ./
# perform installation based on details in package.json
RUN npm install
# run the accessory
ENTRYPOINT ["node"]
CMD ["/opt/Nest_accfactory/Nest_accfactory.js", "/opt/Nest_accfactory/conf/Nest_config.json"]
# labels for the container
LABEL org.opencontainers.image.title="Nest_accfactory_ft"
LABEL org.opencontainers.image.description="HomeKit integration for Nest devices based on HAP-NodeJS library"
LABEL org.opencontainers.image.url="https://github.com/GoWithitRoger/Nest_accfactory_ft"
LABEL org.opencontainers.image.authors="[email protected]"
LABEL org.opencontainers.image.version="v0.1.2"